Skip to content

Wrong types for tests of forbidden functions #3565

@mainsmirnov

Description

@mainsmirnov

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions