sublimetext-codeformatter
sublimetext-codeformatter copied to clipboard
Error with PHP 8
Hello,
the formatting doesn't work with PHP 8.
Screenshot with error message attached below.
With PHP 7 everything works correctly.

+1
Same problem.
+1
See this solution that works:
- Install PHP7.4 along any v8+
- Add/edit path: "php_path": "/usr/bin/php7.4", // Path for PHP executable, e.g. "/usr/lib/php" or "C:/Program Files/PHP/php.exe". If empty, uses command "php" from system environments` in the package user settings
You might need to change executable path for php_fmt as well: https://github.com/nanch/phpfmt_stable/issues/77