Skip to content

Commit ca89a71

Browse files
committed
Make the check for arithmetic operators strict
1 parent db4d18b commit ca89a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Value/Value.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static function parsePrimitiveValue(ParserState $oParserState)
162162
try {
163163
$oValue = self::parseIdentifierOrFunction($oParserState);
164164
} catch (UnexpectedTokenException $e) {
165-
if (in_array($sNextChar, ['+', '-', '*', '/'])) {
165+
if (in_array($sNextChar, ['+', '-', '*', '/'], true)) {
166166
$oValue = $oParserState->consume(1);
167167
} else {
168168
throw $e;

0 commit comments

Comments
 (0)