We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d2b814 commit 5a79652Copy full SHA for 5a79652
1 file changed
src/Lexer.php
@@ -71,8 +71,6 @@ private function initialize()
71
return;
72
}
73
74
- $this->isInitialized = true;
75
-
76
// when PHP 7.3 is the min version, we will be able to remove the '#' part in preg_quote as it's part of the default
77
$this->regexes = [
78
// }}
@@ -160,6 +158,8 @@ private function initialize()
160
158
'interpolation_start' => '{'.preg_quote($this->options['interpolation'][0], '#').'\s*}A',
161
159
'interpolation_end' => '{\s*'.preg_quote($this->options['interpolation'][1], '#').'}A',
162
];
+
+ $this->isInitialized = true;
163
164
165
public function tokenize(Source $source): TokenStream
0 commit comments