home.social

#phpcsfixer — Public Fediverse posts

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

fetched live
  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. 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

  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. 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

  5. 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

  6. 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.

  7. 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.

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

  9. 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

  10. 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

  11. In #PHPCSFixer 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 #OSS maintenance point of view it's crucial.

    coveralls.io/github/PHP-CS-Fix

  12. 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

  13. 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

  14. 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.

  15. 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.

  16. @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.

  17. @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.

  18. 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

  19. 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

  20. 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

  21. 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

  22. 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.

  23. 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

  24. 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

  25. @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");`