Skip to content

LowercasePHPFunctions sniff failing on "new \File()" #2452

@josephzidell

Description

@josephzidell

I've got a class File in the global namespace, and with the latest update, PHPCS is showing this false positive:

Calls to PHP native functions must be lowercase; expected "file" but found "File"

Code:

$filePath = new \File($path);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions