Skip to content

False positive for require_once .phar - cannot be loaded via file_get_contents #478

@kkmuffme

Description

@kkmuffme

require_once( 'some.phar' );

will trigger:
WordPressVIPMinimum.Files.IncludingNonPHPFile.IncludingNonPHPFile

.phar files however must be loaded via include/require, as otherwise they won't work.
Please adjust the sniff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions