Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Parsing/ParserState.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,18 @@ public function parseIdentifier($ignoreCase = true)
}

/**
* @param bool $bIsForIdentifier
* @param bool $isForIdentifier
*
* @return string|null
*
* @throws UnexpectedEOFException
* @throws UnexpectedTokenException
*/
public function parseCharacter($bIsForIdentifier)
public function parseCharacter($isForIdentifier)
{
if ($this->peek() === '\\') {
if (
$bIsForIdentifier && $this->parserSettings->bLenientParsing
$isForIdentifier && $this->parserSettings->bLenientParsing
&& ($this->comes('\\0') || $this->comes('\\9'))
) {
// Non-strings can contain \0 or \9 which is an IE hack supported in lenient parsing.
Expand Down Expand Up @@ -189,7 +189,7 @@ public function parseCharacter($bIsForIdentifier)
}
return \iconv('utf-32le', $this->charset, $sUtf32);
}
if ($bIsForIdentifier) {
if ($isForIdentifier) {
$peek = \ord($this->peek());
// Ranges: a-z A-Z 0-9 - _
if (
Expand Down