You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The old version of PHP Codesniffer, as well as old sniffs, are used for a static code check.
As a result, when adding declare(strict_types=1); causes sniffer to throw a warning on the PSR-2 standard.
As a workaround in #69 I had to add @codingStandardsIgnoreFile annotation. The old version of PHP Codesniffer has made also impossible to use @codingStandardsIgnoreStart and @codingStandardsIgnoreEnd at the beginning of the file.
Suggest updating "squizlabs/php_codesniffer": "1.5.3" to "squizlabs/php_codesniffer": "3.0.1" and use updated sniffs for Magento 2.
The text was updated successfully, but these errors were encountered:
Hi @lenaorobei. Thank you for the report. We created internal ticket MQE-900 to track the progress. We will update you here about progress on this issue.
The old version of PHP Codesniffer, as well as old sniffs, are used for a static code check.
As a result, when adding
declare(strict_types=1);
causes sniffer to throw a warning on the PSR-2 standard.As a workaround in #69 I had to add
@codingStandardsIgnoreFile
annotation. The old version of PHP Codesniffer has made also impossible to use@codingStandardsIgnoreStart
and@codingStandardsIgnoreEnd
at the beginning of the file.Suggest updating
"squizlabs/php_codesniffer": "1.5.3"
to"squizlabs/php_codesniffer": "3.0.1"
and use updated sniffs for Magento 2.The text was updated successfully, but these errors were encountered: