phpstan-src
phpstan-src copied to clipboard
Fix empty regex and empty alternation parse
fix https://github.com/phpstan/phpstan/issues/11762
This pull request has been marked as ready for review.
Do empty alternations or empty capturing groups have real world relevance?
I don't think I have ever seen a regex using it..?
They definitely do, ~@(|phpstan-)param~ is a small example.
This pull request has been marked as ready for review.
Looks fine, thank you.
Thank you ❤