packagist friendsofphp/php-cs-fixer v3.92.0
v3.92.0 Exceptional Exception

7 hours ago

We will take you for a little journey to the past... It's October 4th, 2017. Fixer v2.7.1 (🤯) was released 2 days ago. Suddenly, @mlocati requests path-aware rule sets... not knowing he will eventually implement this only 8 years later 😅.

Back to the present, Fixer now can dynamically change its configured behaviour either by using @php-cs-fixer-ignore, or by implementing RuleCustomisationPolicyInterface and using it via ->setRuleCustomisationPolicy() in config file 💥!

You can read more about it here, but please keep in mind that this feature at this point is considered experimental, and as such it is not covered by the backward compatibility promise. Feel free to experiment with this feature, though, and let us know what you think!

What's Changed

  • feat: exception for rules via @php-cs-fixer-ignore annotation by @keradus in #9280
  • feat: exception for rules via Rule Customisation Policy by @mlocati in #9107
  • feat: PhpUnitTestCaseStaticMethodCallsFixer - add handling of getStubBuilder by @keradus in #9276
  • feat: PhpUnitTestCaseStaticMethodCallsFixer - add target option by @kubawerlos in #8498
  • chore: .php-cs-fixer.dist.php - remove no longer needed rule, 'expectedDeprecation' annotation does not exist for long time by @keradus in #9266
  • chore: Config::getFinder() - fix typehinting by @keradus in #9288
  • chore: fix arguments.count error from PHPStan by @kubawerlos in #9258
  • chore: fix generator.valueType error from PHPStan by @kubawerlos in #9259
  • chore: fix plus.*NonNumeric errors from PHPStan by @kubawerlos in #9260
  • chore: Runner - better input types handling by @keradus in #9286
  • chore: watch out for non-final classes by @keradus in #9262
  • deps: bump alpine from 3.22 to 3.23 by @dependabot[bot] in #9269
  • deps: bump phpcompatibility/php-compatibility from 10.0.0-alpha1 to 10.0.0-alpha2 in /dev-tools by @dependabot[bot] in #9271
  • deps: bump the phpstan group in /dev-tools with 3 updates by @dependabot[bot] in #9270
  • deps: dev-tools - upgrade deep deps by @keradus in #9272
  • docs: exception for rules in dedicated doc files, for easier discoverability by @keradus in #9281
  • docs: upgrade docs to not use legacy set by @keradus in #9282
  • DX: make all testFix* methods have first parameter $expected by @kubawerlos in #9289
  • refactor: ProjectCodeTest - refactor testExpectedInputOrder test by @keradus in #9290
  • refactor: fix violation of 'no_useless_concat_operator' by @keradus in #9267
  • Revert (partially) "feat: Finder to find dot-files by default in v4/future-mode (#9187)" by @keradus in #9287
  • test: RuleSetTest - check against non-deprecated variant of PHPUnit sets by @keradus in #9265
  • UX: exception for rules via Rule Customisation Policy - better error message for wrong customisers by @keradus in #9279
  • UX: exception for rules via Rule Customisation Policy - prevent policy without version by @keradus in #9278

Full Changelog: v3.91.3...v3.92.0

Don't miss a new php-cs-fixer release

NewReleases is sending notifications on new releases.