I just installed this extension and it failed to format. I ran the command manually and this is what I got:
>php "C:\Users\user\.vscode\extensions\kokororin.vscode-phpfmt-1.0.30\node_modules\phpfmt\fmt.phar" --psr2 --indent_with_space=4 index.php
Warning: Use of undefined constant T_WHITESPACE - assumed 'T_WHITESPACE' (this will throw an Error in a future version of PHP) in phar://C:/Users/user/.vscode/extensions/kokororin.vscode-phpfmt-1.0.30/node_modules/phpfmt/fmt.phar/fmt.stub.php on line 3042
Warning: Use of undefined constant T_COMMENT - assumed 'T_COMMENT' (this will throw an Error in a future version of PHP) in phar://C:/Users/user/.vscode/extensions/kokororin.vscode-phpfmt-1.0.30/node_modules/phpfmt/fmt.phar/fmt.stub.php on line 3042
Warning: Use of undefined constant T_DOC_COMMENT - assumed 'T_DOC_COMMENT' (this will throw an Error in a future version of PHP) in phar://C:/Users/user/.vscode/extensions/kokororin.vscode-phpfmt-1.0.30/node_modules/phpfmt/fmt.phar/fmt.stub.php on line 3042Formatting ....
Fatal error: Uncaught Error: Call to undefined function token_get_all() in phar://C:/Users/user/.vscode/extensions/kokororin.vscode-phpfmt-1.0.30/node_modules/phpfmt/fmt.phar/fmt.stub.php:3147
Stack trace:
#0 phar://C:/Users/user/.vscode/extensions/kokororin.vscode-phpfmt-1.0.30/node_modules/phpfmt/fmt.phar/fmt.stub.php(3116): BaseCodeFormatter->getFoundTokens('<?php\r\n/**\r\n * ...')
#1 phar://C:/Users/user/.vscode/extensions/kokororin.vscode-phpfmt-1.0.30/node_modules/phpfmt/fmt.phar/fmt.stub.php(14088): BaseCodeFormatter->formatCode('<?php\r\n/**\r\n * ...')
#2 C:\Users\user\.vscode\extensions\kokororin.vscode-phpfmt-1.0.30\node_modules\phpfmt\fmt.phar(10): include('phar://C:/Users...')
#3 {main} thrown in phar://C:/Users/user/.vscode/extensions/kokororin.vscode-phpfmt-1.0.30/node_modules/phpfmt/fmt.phar/fmt.stub.php on line 3147
I just installed this extension and it failed to format. I ran the command manually and this is what I got:
Any help would be appreciated.