Skip to content

False positives for PSR12 on PHP 7.4.2 #20

@aran112000

Description

@aran112000

PrettyCI is returning errors from PHPCS when running PHPCS locally with the same .phpcs.xml file reports no errors so I don't believe this is a PHPCS issue.

The errors themselves reported aren't issues, and if changed, would actually introduce changes no longer compliant with PSR12.

Here are the results of my latest run showing the two issues:
https://github.com/aran112000/Form-Generator/runs/418127387

Specifically, these are the issues being flagged:

Expected at least 1 space after "?"; 0 found

protected ?string $value = null;

Expected at least 1 space before ":"; 0 found

public function getId(): string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions