Skip to content

Instantly share code, notes, and snippets.

@ultimike
Last active February 26, 2025 12:58
Show Gist options
  • Save ultimike/ba27e26c8a3108ad4020c735ea8b4c3d to your computer and use it in GitHub Desktop.
Save ultimike/ba27e26c8a3108ad4020c735ea8b4c3d to your computer and use it in GitHub Desktop.
Visual Studio Code workspace settings
{
/* DDEV container */
/* PHP Linting */
"php.validate.executablePath": "/usr/bin/php",
/* PHP Sniffer & Beautifier */
"phpsab.executablePathCS": "/var/www/html/vendor/bin/phpcs",
"phpsab.executablePathCBF": "/var/www/html/vendor/bin/phpcbf",
"phpsab.standard": "/var/www/html/phpcs.xml",
"phpsab.snifferEnable": true,
"phpsab.fixerEnable": true,
"phpsab.snifferMode": "onType",
"phpsab.debug": false,
"phpsab.fixerArguments": [],
/* phpstan */
"phpstan.enabled": true,
"phpstan.showProgress": true,
"phpstan.binPath": "/var/www/html/vendor/bin/phpstan",
"phpstan.configFile": "/var/www/html/phpstan.neon"
}
@chrislaick
Copy link

Typo on the end of line 4:
"php.validate.executablePath": "/usr/bin/php",\

@ultimike
Copy link
Author

ultimike commented Feb 5, 2025

Ah - thank you! Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment