Skip to content

Commit e57367c

Browse files
Make in_array() calls strict
1 parent 56b631f commit e57367c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TokenParser/CacheTokenParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function parse(Token $token): Node
3030
$tags = null;
3131
while ($stream->test(Token::NAME_TYPE)) {
3232
$k = $stream->getCurrent()->getValue();
33-
if (!\in_array($k, ['ttl', 'tags'])) {
33+
if (!\in_array($k, ['ttl', 'tags'], true)) {
3434
throw new SyntaxError(\sprintf('Unknown "%s" configuration.', $k), $stream->getCurrent()->getLine(), $stream->getSourceContext());
3535
}
3636

0 commit comments

Comments
 (0)