PHP CodeSniffer doesn't see the doc blocks from PhpStorm inspection, but see them from the CLI. How to fix that?
Here is an example.
From inspection
From CLI
PHP CodeSniffer doesn't see the doc blocks from PhpStorm inspection, but see them from the CLI. How to fix that?
Here is an example.
From inspection
From CLI
Copyright © 2021 Jogjafile Inc.
With local version of
phpcs
it's working. It could be found atvendor/bin
.I used the version, that is required in Magento 2
composer.json
. Now it is1.5.3
.Do not forget to run
composer update
in console to be sure, thatphpcs
is installed locally.