Repository navigation
Released version 2.0.0
The php-fixer plugin now formats PHP with DressCode instead of nette/coding-standard. It follows your project's configuration, keeps the style of the file being edited, and tells the agent exactly what it changed. All four plugins move to 2.0.0 together; only php-fixer has breaking changes.
💥 Breaking Changes
- php-fixer needs DressCode 1.3 or newer, which runs on PHP 8.4+. Nothing stops working after the update: until DressCode is installed, the hook keeps formatting with nette/coding-standard, and the agent offers the new migrate-to-dresscode skill, which installs DressCode, writes a
dresscode.neonand shows what the new standard would change. - php-fixer no longer reads the
fix-php-stylesection of.nette-claude.json; move its exclusions toexcludePathsindresscode.neon. The lint hooks of nette-lint keep using.nette-claude.json.
✨ New Features
- Project configuration – the fixer runs with the nearest
dresscode.neon, the same configuration your CI checks, and uses the Nette coding standard without one. A DressCode installed in the project wins over the global one, so its rule packages and PHPStan apply. - The file's own style – editing a file that is not yet up to the standard no longer reformats all of it: what the file already broke stays as written, and the agent is told to follow the file's style there.
- Clear reports – after a rewrite the agent gets the diff and the imports removed, and the violations left on the lines it edited, each with what to do about it; those elsewhere in the file are only counted.
- Made for editing –
dump()and other debugging calls stay, a new file getsdeclare(strict_types=1)when the standard asks for it, and scratch scripts outside any PHP project are left alone. - install-php-fixer installs DressCode globally together with PHPStan, or into the project when it uses PHPStan, and offers to create
dresscode.neon. - php-coding-standards follows the Nette coding standard as DressCode checks it, with one form for the comments that justify
@,==and!=(// @ file may not exist,// intentionally ==). - The bundled documentation is refreshed, including the new nette/command-line pages on arguments and terminal output, linked from nette-command-line.