akalongman/sublimetext-codeformatter

Error with PHP 8

Opened this issue · 4 comments

TKLCZ commented

Hello,
the formatting doesn't work with PHP 8.
Screenshot with error message attached below.
With PHP 7 everything works correctly.
2021-03-14

+1

Same problem.

+1

See this solution that works:

  1. Install PHP7.4 along any v8+
  2. 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:
nanch/phpfmt_stable#77