Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty regex and empty alternation parse #3507

Open
wants to merge 8 commits into
base: 1.12.x
Choose a base branch
from

Conversation

mvorisek
Copy link
Contributor

@mvorisek mvorisek commented Sep 27, 2024

@mvorisek mvorisek force-pushed the fix_empty_alternation branch 2 times, most recently from b473d7f to bcd469c Compare September 27, 2024 13:36
@mvorisek mvorisek marked this pull request as ready for review September 27, 2024 22:38
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@mvorisek mvorisek force-pushed the fix_empty_alternation branch 2 times, most recently from 9f87f5a to 4c61b1f Compare September 27, 2024 23:20
@staabm
Copy link
Contributor

staabm commented Sep 29, 2024

Do empty alternations or empty capturing groups have real world relevance?

I don't think I have ever seen a regex using it..?

@mvorisek
Copy link
Contributor Author

mvorisek commented Sep 29, 2024

They definitely do, ~@(|phpstan-)param~ is a small example.

@mvorisek mvorisek force-pushed the fix_empty_alternation branch 2 times, most recently from 84a8ecf to fa1f464 Compare October 9, 2024 05:03
@mvorisek mvorisek requested a review from staabm October 10, 2024 17:02
@mvorisek
Copy link
Contributor Author

@staabm can I have your review here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants