-
Notifications
You must be signed in to change notification settings - Fork 479
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
Support posix character classes in preg_match() inference #3241
Conversation
You've opened the pull request against the latest branch 1.12.x. If your code is relevant on 1.11.x and you want it to be released sooner, please rebase your pull request and change its target to 1.11.x. |
Ok I'll try to debug this, thanks. Might not have time before later this week though. |
Just adding
Unfortunately I don't manage to make it capture the last And also this is super brittle, and I can break it by adding
|
@mvorisek are you familiar with this parser? Is there a syntax to turn this silly scanning-of-all-tokens off and tell it to not look at other tokens while it is in the middle of parsing a |
I guess I'll need to read up on https://github.com/hoaproject/Compiler - but no time for this anymore today .. |
here seems to be something like a documentation |
Of course |
as far as I understood the other parallel PRs, current progress happens in #3244 and this one here is obsolete. therefore closing. |
closes phpstan/phpstan#11323
composer install
- so the patch is appliedvendor/bin/phpunit tests/PHPStan/Analyser/NodeScopeResolverTest.php
(will test all preg_match() related tests)for a faster debug loop, you might just put the test into a
test.php
file:and run
php bin/phpstan analyze test.php --debug
on it(append an additional
--xdebug
in case you want to step-debug)