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
eregDeprecated
The following sniffs pick up method names in addition to function names, causing an error where it shouldn't:
eregDeprecatedRemoved
eregiDeprecatedRemoved
ereg_replaceDeprecatedRemoved
eregi_replaceDeprecatedRemoved
The issue happens when running this command:
phpcs -ps file.php --standard=PHPCompatibility --runtime-set testVersion 8.1
... over a file containing this code:
MyClass::eregi($value, $string);
No errors or warnings.
PHPCompatibility.Extensions.RemovedExtensions.eregDeprecatedRemoved
develop
The text was updated successfully, but these errors were encountered:
@afilina This is a known issue and the RemovedExtensions sniff is slated to be removed before the PHPCompatibility 10.0.0 release because of it.
RemovedExtensions
10.0.0
See #1022 for further details.
Sorry, something went wrong.
(sorry, will leave this issue open until #1022 has been finalized)
No branches or pull requests
Bug Description
The following sniffs pick up method names in addition to function names, causing an error where it shouldn't:
eregDeprecatedRemoved
eregiDeprecatedRemoved
ereg_replaceDeprecatedRemoved
eregi_replaceDeprecatedRemoved
Given the following reproduction Scenario
The issue happens when running this command:
... over a file containing this code:
I'd expect the following behaviour
No errors or warnings.
Instead this happened
PHPCompatibility.Extensions.RemovedExtensions.eregDeprecatedRemoved
Environment
Tested Against
develop
branch?develop
branch of PHPCompatibility.The text was updated successfully, but these errors were encountered: