Skip to content

Commit ce37ff2

Browse files
authored
Fix PHPStan error (#172)
1 parent 39eab9f commit ce37ff2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Tokenizer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -804,9 +804,9 @@ private function makeRegexFromList(array $values, bool $sorted = false): string
804804
}
805805

806806
if ($items !== []) {
807-
$valuesBySharedPrefix[$prefix] = $items;
808-
$items = [];
809-
$prefix = null;
807+
$valuesBySharedPrefix[(string) $prefix] = $items;
808+
$items = [];
809+
$prefix = null;
810810
}
811811

812812
$regex = '(?>';

0 commit comments

Comments
 (0)