Skip to content

UnusedPsalmSuppress reported in vendor dir #5356

@BenMorel

Description

@BenMorel

I have the following psalm.xml config file:

<?xml version="1.0"?>
...
    <projectFiles>
        <directory name="lib" />
        <directory name="src" />
        <ignoreFiles>
            <directory name="vendor" />
        </ignoreFiles>
    </projectFiles>
</psalm>

On first run, the vendor/bin/psalm --find-unused-psalm-suppress command returns the following error:

ERROR: UnusedPsalmSuppress - vendor/myclabs/php-enum/src/Enum.php:65:33 - This suppression is never used (see https://psalm.dev/207)
            /** @psalm-suppress InvalidCast */

I cannot reproduce it on second run. Is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions