PHP_CodeSniffer icon indicating copy to clipboard operation
PHP_CodeSniffer copied to clipboard

Wrong types for tests of forbidden functions

Open mainsmirnov opened this issue 2 years ago • 0 comments

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: Screenshot 2022-03-23 at 19 06 59

Code sample

function test(int $b) {}

$a = count([1]);
test($a);

mainsmirnov avatar Mar 23 '22 16:03 mainsmirnov