diff --git a/Matcher/Dumper/StaticPrefixCollection.php b/Matcher/Dumper/StaticPrefixCollection.php index 97bd692a..47d923c6 100644 --- a/Matcher/Dumper/StaticPrefixCollection.php +++ b/Matcher/Dumper/StaticPrefixCollection.php @@ -200,6 +200,7 @@ private function getCommonPrefix(string $prefix, string $anotherPrefix): array public static function handleError(int $type, string $msg) { - return str_contains($msg, 'Compilation failed: lookbehind assertion is not fixed length'); + return str_contains($msg, 'Compilation failed: lookbehind assertion is not fixed length') + || str_contains($msg, 'Compilation failed: length of lookbehind assertion is not limited'); } }