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

preg_match bugs #11221

Closed
ondrejmirtes opened this issue Jun 21, 2024 · 8 comments · Fixed by phpstan/phpstan-src#3184
Closed

preg_match bugs #11221

ondrejmirtes opened this issue Jun 21, 2024 · 8 comments · Fixed by phpstan/phpstan-src#3184
Labels

Comments

@ondrejmirtes
Copy link
Member

Bug report

I'm probably going to posst more, but here's the first one:

https://phpstan.org/r/dc4ed9e8-1a18-411a-a369-088fab67be7d

Why are 3, 4, 5, 6 optional?

/cc @staabm

Code snippet that reproduces the problem

No response

Expected output

...

Did PHPStan help you today? Did it make you happy in any way?

No response

@staabm
Copy link
Contributor

staabm commented Jun 21, 2024

@ondrejmirtes
Copy link
Member Author

If this is not solved, I'm going to turn the flag off even in bleeding edge. We'll be able to work on it but it's going to be turned off for everyone.

@ondrejmirtes
Copy link
Member Author

@mvorisek
Copy link
Contributor

mvorisek commented Jun 24, 2024

Here is the repro simplified: https://phpstan.org/r/77292b7b-6515-4437-b482-0ca7b8281c9e

I do not think this is an issue in the hoa regex grammar.

@staabm
Copy link
Contributor

staabm commented Jun 24, 2024

thanks.

I will have another deeper look then.

support would still be welcome :)

edit: fixes in phpstan/phpstan-src#3184

Copy link

github-actions bot commented Aug 2, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants