From 2ac4433a834623054bf25b1eef94459b607011b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 8 Jun 2024 12:09:16 +0200 Subject: [PATCH] Revert "fix stan" This reverts commit b0dfd1a9d02c2968d10127e17dda0cc3a77af132. --- src/Tokenizer.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Tokenizer.php b/src/Tokenizer.php index b76a0f4..2abe5f0 100644 --- a/src/Tokenizer.php +++ b/src/Tokenizer.php @@ -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);