Written by James McDonald

April 23, 2024

Still haven’t gotten this working well… sigh.

The persoderlind.vscode-phpcbf extension didn’t work for me when running my PHP devel container (php:8.2-fpm) on Windows 11 in Docker Desktop using the WSL2 Engine until I let it know about the CakePHP coding standard

# in project ROOT
# before no CakePHP standard available
vendor/bin/phpcbf -i
The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz and Zend

# let phpcbf know about the CakePHP sniffs
vendor/bin/phpcs --config-set installed_paths /var/www/wms/vendor/cakephp/cakephp-codesniffer
Using config file: /var/www/wms/vendor/squizlabs/php_codesniffer/CodeSniffer.conf

Config value "installed_paths" added successfully
# check that CakePHP is available
phpcbf -i
The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz, Zend and CakePHP

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Robocopy exclude Directories

Just trying to copy everything except a couple of directories from a drive to my NAS This is the secret incantation of...