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
2024-02-16 07:38:35.992 [error] Error: { "vscodeOptions": { "tabWidth": 1 }, "result":
PHP Fatal error: Uncaught TypeError: SlevomatCodingStandard\Helpers\SniffSettingsHelper::isEnabledByPhpVersion(): Argument #1 ($value) must be of type ?bool, string given, called in F:\xxx\vendor\slevomat\coding-standard\SlevomatCodingStandard\Sniffs\TypeHints\UnionTypeHintFormatSniff.php on line 70 and defined in F:\xxx\vendor\slevomat\coding-standard\SlevomatCodingStandard\Helpers\SniffSettingsHelper.php:80
Stack trace:
#0 F:\xxx\vendor\slevomat\coding-standard\SlevomatCodingStandard\Sniffs\TypeHints\UnionTypeHintFormatSniff.php(70): SlevomatCodingStandard\Helpers\SniffSettingsHelper::isEnabledByPhpVersion() #1 F:\xxx\vendor\squizlabs\php_codesniffer\src\Files\File.php(518): SlevomatCodingStandard\Sniffs\TypeHints\UnionTypeHintFormatSniff->process() #2 F:\xxx\vendor\squizlabs\php_codesniffer\src\Runner.php(632): PHP_CodeSniffer\Files\File->process() #3 F:\xxx\vendor\squizlabs\php_codesniffer\src\Runner.php(438): PHP_CodeSniffer\Runner->processFile() #4 F:\xxx\vendor\squizlabs\php_codesniffer\src\Runner.php(116): PHP_CodeSniffer\Runner->run() #5 F:\xxx\vendor\squizlabs\php_codesniffer\bin\phpcs(18): PHP_CodeSniffer\Runner->runPHPCS() #6 F:\xxx\vendor\bin\phpcs(119): include('...') #7 {main}
thrown in F:\xxx\vendor\slevomat\coding-standard\SlevomatCodingStandard\Helpers\SniffSettingsHelper.php on line 80
at executeCommand (c:\Users\xxx.vscode\extensions\wongjn.php-sniffer-1.3.0\lib\cli.js:151:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.phpcs (c:\Users\xxx.vscode\extensions\wongjn.php-sniffer-1.3.0\lib\runner.js:159:22)
Thank you.
The text was updated successfully, but these errors were encountered:
If I enable this sniff:
I get this crash:
Thank you.
The text was updated successfully, but these errors were encountered: