You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong types for tests of forbidden functions #3565
Describe the bug
In PHPStorm by JetBrains code highlights red, because he scanning vendor directory and find global functions in ForbiddenFunctionsUnitTest.inc. Exclude directory not helping.
Example:
Code sample
function test(int $b) {}
$a = count([1]);
test($a);
Well, this issue was sort-of valid, as in: the underlying problem was the fact that the sniff tests from PHPCS were shipped with PHPCS. This was fixed in PHPCSStandards/PHP_CodeSniffer#993, which was included in the 4.0.0 release, so this issue now no longer exists.
Activity
rodrigoprimo commentedon Mar 3, 2026
This doesn't seem like a valid issue, and the associated PR was closed. I believe this issue should be closed as well.
jrfnl commentedon Mar 3, 2026
Well, this issue was sort-of valid, as in: the underlying problem was the fact that the sniff tests from PHPCS were shipped with PHPCS. This was fixed in PHPCSStandards/PHP_CodeSniffer#993, which was included in the 4.0.0 release, so this issue now no longer exists.