Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Revert "fix stan"
Browse files Browse the repository at this point in the history
This reverts commit b0dfd1a.
  • Loading branch information
mvorisek committed Jun 8, 2024
1 parent e4bbb51 commit 2ac4433
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -838,10 +838,6 @@ private function makeRegexFromList(array $values, bool $sorted = false): string

$regex .= preg_quote($prefix, '/');

if (count($items) === 1) {
assert(reset($items) !== false);
}

$regex .= count($items) === 1
? preg_quote(substr(reset($items), strlen($prefix)), '/')
: $this->makeRegexFromList(array_map(static fn ($v) => substr($v, strlen($prefix)), $items), true);
Expand Down

0 comments on commit 2ac4433

Please sign in to comment.