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
When I run npx prettier **/* --check it does give a warning about this test file. . --check does work for javascript, CSS, and other files. I can't find anything in the Prettier 3 release notes and the plugin-php documentation about this changed behavior since Prettier 2.
Does anyone know what I'm doing wrong?
The text was updated successfully, but these errors were encountered:
Seeing the same issue with a fresh install of prettier and prettier-php here!
If I point npx prettier --check ./sites/templates (templates being a directory that only contains PHP files) I'm getting a warning that the directory contains no files the could be checked with prettier.
This appears to be a new behavior since the prettier 3 upgrade. If I drop my version requirements in my package.json to the following the plugin behaves as intended.
The reason for this is most likely that you're either missing the PHP plugin, or you're not specifying that it should be used explicitly (the "plugin search" feature has been removed in Prettier v3, see #2215 for details).
Prettier 3.0.3
PHP Plugin 0.20.1
Input:
npx prettier . --check
Output:
All matched files use Prettier code style!
Expected behavior:
An error about a PHP file. I've added a PHP file that doesn't match the code style:
When I run
npx prettier **/* --check
it does give a warning about this test file.. --check
does work for javascript, CSS, and other files. I can't find anything in the Prettier 3 release notes and the plugin-php documentation about this changed behavior since Prettier 2.Does anyone know what I'm doing wrong?
The text was updated successfully, but these errors were encountered: