We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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_all allows up to 5 parameters. preg_match_all('@a+@', 'aa bb cc', $matches, PREG_PATTERN_ORDER, 1); triggers a false positive TooManyArguments.
preg_match_all('@a+@', 'aa bb cc', $matches, PREG_PATTERN_ORDER, 1);
See: https://psalm.dev/r/4ff0dfe9ec
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php preg_match_all('@a+@', 'aa bb cc', $matches, PREG_PATTERN_ORDER, 1);
Psalm output (using commit 7d5dbd3): ERROR: TooManyArguments - 3:1 - Too many arguments for preg_match_all - expecting 4 but saw 5
Sorry, something went wrong.
363887a
Add explicit offset
d163307
Fixes #4202
da8df71
Fixes vimeo#4202
No branches or pull requests
preg_match_all allows up to 5 parameters.
preg_match_all('@a+@', 'aa bb cc', $matches, PREG_PATTERN_ORDER, 1);
triggers a false positive TooManyArguments.See: https://psalm.dev/r/4ff0dfe9ec
The text was updated successfully, but these errors were encountered: