Skip to content

Commit d57bdd2

Browse files
authored
Fix deprecated syntax for variable interpolation
1 parent afae6ab commit d57bdd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Parsing/ParserState.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ public function parseIdentifier($bIgnoreCase = true, $bNameStartCodePoint = true
154154

155155
if (
156156
! (
157-
preg_match("/^-([-${sNameStartCodePoint}]|${sEscapeCode})/isSu", $this->peek(3)) ||
158-
preg_match("/^${sNameStartCodePoint}/isSu", $this->peek()) ||
159-
preg_match("/^${sEscapeCode}/isS", $this->peek(2))
157+
preg_match("/^-([-{$sNameStartCodePoint}]|{$sEscapeCode})/isSu", $this->peek(3)) ||
158+
preg_match("/^{$sNameStartCodePoint}/isSu", $this->peek()) ||
159+
preg_match("/^{$sEscapeCode}/isS", $this->peek(2))
160160
)
161161
) {
162162
$bCanParseCharacter = false;

0 commit comments

Comments
 (0)