home.social

#phpcsfixer — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #phpcsfixer, aggregated by home.social.

  1. Статанализ — must-have для проектов с Codex/ClaudeCode

    На днях у Кирилла Мокевнина вышел пост про то, как он разлюбил динамическую типизацию. Мысль понятная: на больших кодовых базах отсутствие типов начинает дорого стоить. Хочу дополнить аргументом, который в 2026 году уже стал прям must-have: статанализ и типы — это лучший self-check для AI-агента . Современные агенты для разработки (Claude Code на Opus 4.5 и ChatGPT Codex 5.2 High) хорошо пишут код. Ошибок уровня «переменная не объявлена», «импорт забыл», «опечатка в имени метода» по сути уже почти нет. Основные промахи чаще про другое:

    habr.com/ru/articles/993004/

    #статистический_анализ #статический_анализ_кода #ruff #phpstan #phpcsfixer #php #python #go #codex #claude_code

  2. Статанализ — must-have для проектов с Codex/ClaudeCode

    На днях у Кирилла Мокевнина вышел пост про то, как он разлюбил динамическую типизацию. Мысль понятная: на больших кодовых базах отсутствие типов начинает дорого стоить. Хочу дополнить аргументом, который в 2026 году уже стал прям must-have: статанализ и типы — это лучший self-check для AI-агента . Современные агенты для разработки (Claude Code на Opus 4.5 и ChatGPT Codex 5.2 High) хорошо пишут код. Ошибок уровня «переменная не объявлена», «импорт забыл», «опечатка в имени метода» по сути уже почти нет. Основные промахи чаще про другое:

    habr.com/ru/articles/993004/

    #статистический_анализ #статический_анализ_кода #ruff #phpstan #phpcsfixer #php #python #go #codex #claude_code

  3. RE: phpc.social/@jay/1158110485529

    My proposal to Rector was rightfully rejected, so I’m attempting to incorporate it into PHP CS Fixer now 🤞🏻. Here’s the link to my pull request, in case you want to check it out!

    github.com/PHP-CS-Fixer/PHP-CS

    #Rector #PHPCSFixer #PHP

  4. RE: phpc.social/@jay/1158110485529

    My proposal to Rector was rightfully rejected, so I’m attempting to incorporate it into PHP CS Fixer now 🤞🏻. Here’s the link to my pull request, in case you want to check it out!

    github.com/PHP-CS-Fixer/PHP-CS

    #Rector #PHPCSFixer #PHP

  5. After almost a year since I created it, my PR to #PHPCSFixer that introduces #PHPCompatibility check was merged 🥳. This improves our QA suite with another tool that can catch usage of language features not available on runtimes marked as supported.

    github.com/PHP-CS-Fixer/PHP-CS

  6. After almost a year since I created it, my PR to that introduces check was merged 🥳. This improves our QA suite with another tool that can catch usage of language features not available on runtimes marked as supported.

    github.com/PHP-CS-Fixer/PHP-CS

  7. My PR got merged, so starting from today @PhpSpec's #Prophecy library uses #PHPCSFixer 🥳. It was created so long ago that it didn't even include parallel runner in the dist config, so I need to make a follow up 😅.

    github.com/phpspec/prophecy/pu

  8. My PR got merged, so starting from today @PhpSpec's library uses 🥳. It was created so long ago that it didn't even include parallel runner in the dist config, so I need to make a follow up 😅.

    github.com/phpspec/prophecy/pu

  9. Does anybody know a good code formatter for #HTML? I am looking for something like #ESLint Stylistic or #PHPCSFixer. And please don't suggest #Prettier, I know that it can format HTML as well, but I don't like that fact that they introduce changes in major versions that might reformat my entire code causing lots of conflicts in pull requests without the possibility to disable those changes.

  10. Does anybody know a good code formatter for #HTML? I am looking for something like #ESLint Stylistic or #PHPCSFixer. And please don't suggest #Prettier, I know that it can format HTML as well, but I don't like that fact that they introduce changes in major versions that might reformat my entire code causing lots of conflicts in pull requests without the possibility to disable those changes.

  11. In approximately 4 DAYS 's main package will hit the milestone of 150 MILLIONS of downloads 🥳! Thank you everyone for using our tool, we're happy to be able to make your development process easier ❤️.

  12. It is with great pride that I will be a speaker again at the in Poznań 🥰! I will share a case study based on my adventure, dealing with , and improving QA/CI setup in the projects in general.

    See you all on📆 June 21st at 12:00pm!

  13. I've just added arm64 support for 's images, so starting from the next release you can run Fixer via Docker on Apple Silicone chipsets natively, without Rosetta. I am not sure why we didn't add it when we introduced Docker builds 😅.

    github.com/PHP-CS-Fixer/PHP-CS

  14. Has anyone implemented a custom #phpcsfixer rule that enforces only one chained method call per line? #php #phpcsfixer

  15. Has anyone implemented a custom #phpcsfixer rule that enforces only one chained method call per line? #php #phpcsfixer

  16. In 1 month time I'll hit the mark of being 's maintainer for 1 full year. I believe it was very busy & fruitful time that I can be proud of 😁. I was able to improve (directly or by pushing others into right direction) so many things, and also learn so much!

  17. Mutation testing in #PHPCSFixer is ready 🥳! When it's merged, all pull requests will be covered with #Infection and checked if added/modified files are mutants-proof. It will enforce really good tests quality (which already has been high with MSI=80).

    github.com/PHP-CS-Fixer/PHP-CS

  18. Mutation testing in is ready 🥳! When it's merged, all pull requests will be covered with and checked if added/modified files are mutants-proof. It will enforce really good tests quality (which already has been high with MSI=80).

    github.com/PHP-CS-Fixer/PHP-CS

  19. Another feedback for #PHPCSFixer's parallel analysis from Markus Podar, on a project with ~6k #PHP files 😍! Please note that results are achieved on different runtimes, as sequential analysis was done on a host, while parallel through Docker on Mac.

    github.com/PHP-CS-Fixer/PHP-CS

  20. Another feedback for 's parallel analysis from Markus Podar, on a project with ~6k files 😍! Please note that results are achieved on different runtimes, as sequential analysis was done on a host, while parallel through Docker on Mac.

    github.com/PHP-CS-Fixer/PHP-CS

  21. In we have allowed coverage decrease threshold for failure set to 0.1%, so each pull request must provide tests for introduced changes 🫠. This may seem like a harsh requirement, but from maintenance point of view it's crucial.

    coveralls.io/github/PHP-CS-Fix

  22. I've just published 's version with parallel runner support as a image 🥳. It is development version of a tool based on my work in #️⃣7️⃣7️⃣7️⃣7️⃣. You can test it with:

    docker run --rm -it -v $(pwd):/code wirone/php-cs-fixer:parallel check

    github.com/PHP-CS-Fixer/PHP-CS

  23. I've successfully implemented per-file result reporting from worker to runner, which means progress output & cache storage works in REAL-TIME (like in sequential analysis) 🤩!

    #️⃣7️⃣7️⃣7️⃣7️⃣ is probably the most impactful change in in years!

    github.com/PHP-CS-Fixer/PHP-CS

  24. I've fixed issues with #PHPCSFixer's official page deployment. The documentation is up-to-date now (we've been 2 majors late), links to test classes are correct, and there's information about #Docker usage on the main page 🙂.

    cs.symfony.com/#run-with-docke

  25. I've fixed issues with 's official page deployment. The documentation is up-to-date now (we've been 2 majors late), links to test classes are correct, and there's information about usage on the main page 🙂.

    cs.symfony.com/#run-with-docker

  26. This evening/night I am going to work on the initial version of my PR #️⃣7️⃣7️⃣7️⃣7️⃣. It will be my most important change provided to . Actually I have it working already, but still need some polishing before publishing. Keep fingers crossed!

    github.com/PHP-CS-Fixer/PHP-CS

  27. Since 7️⃣ is my favourite number and I always buy personalised football shirts with #️⃣7️⃣7️⃣, I just HAD TO take that opportunity and create pull request #️⃣7️⃣7️⃣7️⃣7️⃣ for my upcoming BOMBAZO 🤩! Stay tuned!

    github.com/PHP-CS-Fixer/PHP-CS

  28. I've never thought that my 100th merged pull request to will be a revert of a PR that I reviewed and merged before 🥲. I guess we all make mistakes 🤷‍♂️.

    Anyway, great milestone 🥳!

    github.com/PHP-CS-Fixer/PHP-CS

  29. In order to use with pre-built images, you just need to run Fixer in a container, with your code mounted as a volume. Use it locally, utilise in CI - the only limit is your imagination 😁. The main advantage is that you have full matrix of Fixer/PHP versions.

    phpc.social/@PHPCSFixer/111761

  30. I am away from home, having free evening in the hotel. Probably I should take this opportunity and go to sleep 😂. Instead, I am going to run hackathon: I am going to review and merge as many PRs as I can (maybe will create new ones too) 🤙!

  31. I wanted to do it myself at some point, but in the end I co-authored it with Hannes 😎. I've provided thorough review how I see it (as I've been thinking about it for some time now), we agreed on the path and here it is! I am really happy this feature lands in 🥰!

    phpc.social/@PHPCSFixer/111719

  32. If you would like to have an impact on how feature requests are handled in #PHPCSFixer, then please go to ongoing RFC & let us know! Leave a comment, vote in a poll, upvote comments - any feedback is welcome 🙂.

    My point of view, that is being discussed:
    github.com/PHP-CS-Fixer/PHP-CS

  33. If you would like to have an impact on how feature requests are handled in , then please go to ongoing RFC & let us know! Leave a comment, vote in a poll, upvote comments - any feedback is welcome 🙂.

    My point of view, that is being discussed:
    github.com/PHP-CS-Fixer/PHP-CS

  34. One of the major areas in which #PhpCsFixer isn't fully featured enough is line length rules.

    I know this is incredibly difficult, especially if you make it configurable in any way. But that doesn't mean I don't want it 🤷‍♀️

    When I'm working with #PHP I really miss what #Prettier does for #JS.

  35. One of the major areas in which isn't fully featured enough is line length rules.

    I know this is incredibly difficult, especially if you make it configurable in any way. But that doesn't mean I don't want it 🤷‍♀️

    When I'm working with I really miss what does for .

  36. @outofcontrol This time it was a ludicrous behaviour when setting up #DDEV and #PhpCSFixer within #docker with "external tools". Phpstorm only excepted one single setting after each other and I had to restart the software after each setting so that Phpstorm would find config files in the docker container. After clearing the cache everything worked as expected.

  37. @outofcontrol This time it was a ludicrous behaviour when setting up #DDEV and #PhpCSFixer within #docker with "external tools". Phpstorm only excepted one single setting after each other and I had to restart the software after each setting so that Phpstorm would find config files in the docker container. After clearing the cache everything worked as expected.

  38. We are proud to announce that...

    🎉 WE NOW SUPPORT #PHP 8.2 🎉

    #PHPCSFixer can now be installed and run on most recent PHP version 😁. We did our best to ensure everything works correctly, but if you have any problems, just let us know!

    github.com/PHP-CS-Fixer/PHP-CS

  39. Dear #PHP community, we want to ask you for help: please spread the info that #PHPCSFixer is here! 🙏

    We're going to share helpful information in the future, but what even the best toot would be without the audience? 😉

    #phpc #symfony #laravel #codingstandards

  40. Heck, #Jetbrains, why?
    External tools are not project specific 😞
    youtrack.jetbrains.com/issue/I

    I amended my description for running #PhpCSFixer within #Docker. With a little trick it's working though.

  41. It took me two hours to figure out #PhpCSFixer within #Docker settings for #PHPStorm, so that all local #PHP dependencies are obsolete. But now it's working:
    github.com/helmutstrasser/phps

  42. Am I really the only one that is missing proper line numbers in the output of #PHPCSFixer? That would allow me to use it to lint files in #NeoVim. At least nobody reacted on the issue I created: github.com/PHP-CS-Fixer/PHP-CS

  43. @screenbeard @simon_w

    I also use #PhpCSFixer and in my projects always use tabs as anyone can have his/her own settings how wide the tabs will be shown.

    I do this with the following rule:

    `$config->setIndent("\t");`