pretty
pretty copied to clipboard
False positives for PSR12 on PHP 7.4.2
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