Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with PHP 8 #410

Open
TKLCZ opened this issue Mar 14, 2021 · 4 comments
Open

Error with PHP 8 #410

TKLCZ opened this issue Mar 14, 2021 · 4 comments

Comments

@TKLCZ
Copy link

TKLCZ commented Mar 14, 2021

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

@QNET17
Copy link

QNET17 commented Mar 17, 2021

+1

@amirhamza05
Copy link

Same problem.

@keizo3
Copy link

keizo3 commented Dec 2, 2021

+1

@nekromoff
Copy link

nekromoff commented Feb 13, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants