-
Notifications
You must be signed in to change notification settings - Fork 36
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
Skip StringsMatchDynamicReturnTypeExtensionTest on PHP 7.2/7.3 #149
Conversation
ArrayShapeMatcher does not work for these old php versions
here we go |
return; | ||
} | ||
|
||
yield from self::gatherAssertTypes(__DIR__ . '/data/strings-match.php'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please explain what is it about these example that they cannot work on PHP 7.2 and 7.3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ArrayShapeMatcher requires named capturing groups to work
For the regex
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you link 3v4l.org example that shows different results for the cutoff versions? Something that's different between 7.3 and 7.4 and that makes this not work for these older versions.
I tried running the links in the comments but they have the same output https://3v4l.org/sOXbn https://3v4l.org/3SdDM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://3v4l.org/dYdoO#v7.2.0
as soon as the hoa regex ast would contain enough information that we no longer need the caputring group hack, we could support 7.2/7.3
obsolete with phpstan/phpstan-src#3184 |
ArrayShapeMatcher does not work for these old php versions
should fix phpstan-src CI errors