BigFatBear

March 31, 2025, 10:28 am

Just discovered that when using PHP-CS-Fixer as a formatter in PhpStorm, it ignores the excluded files from the config, and there’s no built-in way to change this—except by using a File Watcher, which causes lag.

Even better: JetBrains is aware of the issue but won’t fix it due to "no interest." Perfect. 🙃

https://youtrack.jetbrains.com/issue/WI-43056/PHP-CS-Fixer-Support-path-mode-option

Shepado's profile picture
Heinzi's profile picture

Liked by Shepado and

Comments

You must be logged in to comment.


NIHKLAS

March 31, 2025, 11:16 am

Just use Neovim, it just works™

Shepado's profile picture

Liked by Shepado

Aaron #1

March 31, 2025, 10:37 am

You can select the config in the PHPStorm settings, just search for phpcsfixer there and select the config for it to also recognize it when using it in the IDE

Shepado's profile picture

Liked by Shepado

BigFatBear

March 31, 2025, 10:31 am

Just realized that PHPStorm keeps breaking SQL queries in PHPDocs because it doesn’t respect ignored files and applies `align_multiline_comment`, adding unwanted asterisks.

Meanwhile, a senior dev insists on keeping the old formatting for "readability"—rather than preventing a bug when formatting. 🤦‍♂️

https://cs.symfony.com/doc/rules/phpdoc/align_multiline_comment.html

Shepado's profile picture
Uncle_M's profile picture

Liked by Shepado and