vscode-phpcs icon indicating copy to clipboard operation
vscode-phpcs copied to clipboard

Error occurring on auto_detect_line_endings deprecation

Open pandabrand opened this issue 3 years ago • 1 comments

This error keeps coming up

phpcs: Unknown error ocurred. Please verify that /Users/frederickwells/.composer/vendor/bin/phpcs --report=json -q -s --encoding=UTF-8 --standard=WordPress-Core --error-severity=5 --warning-severity=5 --stdin-path=/Volumes/Hobo/.../app/Controller/Sales_Controller.php - returns a valid json object.

When I run that command I get

PHP Deprecated:  auto_detect_line_endings is deprecated in /Users/frederickwells/.composer/vendor/squizlabs/php_codesniffer/src/Runner.php on line 294

Deprecated: auto_detect_line_endings is deprecated in /Users/frederickwells/.composer/vendor/squizlabs/php_codesniffer/src/Runner.php on line 294
ERROR: You must supply at least one file or directory to process.

phpcs: 3.6.0 php: 8.1 VSC: 1.64.2

pandabrand avatar Feb 23 '22 17:02 pandabrand

Anyone was able to overcome this?

avivais avatar May 01 '22 12:05 avivais