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
if(preg_match('/(?<name>\d*)/n', $input, $matches)) {
results in [EA] Unknown modifier 'n'.
[EA] Unknown modifier 'n'.
If Language Level >= PHP 8.2, then n should be treated as a valid modified. Else continue warning, as this modifier was introduced in PHP 8.2
n
Nice to have: n should check if the regular expression actually has any named capture groups and warn if it doesn't.
Build #PS-243.21155.35, built on October 25, 2024
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current behaviour
results in
[EA] Unknown modifier 'n'.
Expected behaviour
If Language Level >= PHP 8.2, then
n
should be treated as a valid modified.Else continue warning, as this modifier was introduced in PHP 8.2
Nice to have:
n
should check if the regular expression actually has any named capture groups and warn if it doesn't.Environment details
Build #PS-243.21155.35, built on October 25, 2024
The text was updated successfully, but these errors were encountered: