packagist friendsofphp/php-cs-fixer v3.95.0
v3.95.0 Adalbertus

9 hours ago

What's Changed

  • feat: @Symfony:risky - add void_return by @keradus in #9546
  • feat: DeclareStrictTypesFixer - add strategy option that will allow to remove declaration by @nicolas-grekas in #9384
  • feat: GlobalNamespaceImportFixer - support first-class callable syntax by @kubawerlos in #9484
  • feat: MethodArgumentSpaceFixer - add ensure_single_line_for_single_argument option for on_multiline by @localheinz in #9504
  • feat: MultilinePromotedPropertiesFixer - turn multiline promoted properties into singleline when there are fewer than minimum_number_of_parameters by @localheinz in #9501
  • feat: PhpdocLineSpanFixer - add function option by @paulbalandan in #9439
  • feat: ReturnAssignmentFixer - skip variables with the named @var tags with new option skip_named_var_tags by @mspirkov in #9464
  • feat: Add exclude option to phpdoc_types rule by @spawnia in #9479
  • feat: introduce 'list-rules' command by @keradus in #9512
  • feat: introduce NoWhitespaceInEmptyArrayFixer by @jrmajor in #8155
  • feat: Resolve to json format when AI_AGENT environment variable is set by @localheinz in #9542
  • fix: ArrayPushFixer - do not stop fixing when array_push with 1 argument found by @kubawerlos in #9508
  • fix: BinaryOperatorSpacesFixer - make it works correctly with multiple match cases by @kubawerlos in #9470
  • fix: EchoTagSyntaxFixer - do not break syntax for single line comments by @kubawerlos in #9506
  • fix: PhpUnitTestClassRequiresCoversFixer - do not add @coversNothing to anonymous classes by @kubawerlos in #9481
  • fix: SimplifiedNullReturnFixer - do not remove null from property hook by @kubawerlos in #9471
  • docs: extend docs about exit code by @keradus in #9526
  • docs: StaticLambdaFixer - document example how to prevent conversion by @keradus in #9502
  • DX: change default PHP_CS_FIXER_FAST_LINT_TEST_CASES=1 and run full linting of test cases only on highest and lowest PHP versions in CI by @keradus in #9448
  • chore: MbStrFunctionsFixer - remove the never true condition by @kubawerlos in #9509
  • chore: ModernizeStrposFixer - remove the never true conditions by @kubawerlos in #9510
  • chore: NoAliasFunctionsFixer - cleanup invalid set handling by @kubawerlos in #9511
  • chore: add missing test for SetTypeToCastFixer by @kubawerlos in #9518
  • chore: add test for NoMultipleStatementsPerLineFixer by @kubawerlos in #9533
  • chore: add tests for BracesPositionFixer by @kubawerlos in #9522
  • chore: add tests for PsrAutoloadingFixer by @kubawerlos in #9541
  • chore: cleanup ClassAttributesSeparationFixer by @kubawerlos in #9545
  • chore: cleanup GeneralAttributeRemoveFixer by @kubawerlos in #9520
  • chore: cleanup GlobalNamespaceImportFixerTest by @kubawerlos in #9482
  • chore: cleanup NoTrailingCommaInSinglelineFixer by @kubawerlos in #9537
  • chore: cleanup OrderedAttributesFixer by @kubawerlos in #9521
  • chore: cleanup PhpUnitExpectationFixer by @kubawerlos in #9505
  • chore: cleanup MagicConstantCasingFixer by @kubawerlos in #9494
  • chore: cleanup NoNullPropertyInitializationFixer by @kubawerlos in #9493
  • chore: commands cleanup by @kubawerlos in #9478
  • chore: ensure that regex TypeExpression::REGEX_TYPES does not have unnamed capturing group by @kubawerlos in #9514
  • chore: exclude logo.png and composer-dependency-analyser.php from Composer export by @alexislefebvre in #9516
  • chore: group dependabot updates for Docker and GitHub Actions by @keradus in #9535
  • chore: improve AbstractPhpUnitFixer by @kubawerlos in #9519
  • chore: improve ArrayPushFixer by @kubawerlos in #9515
  • chore: update FunctionsAnalyzer by @kubawerlos in #9483
  • CI: add failOnDeprecation="true" to PHPUnit config by @kubawerlos in #8935
  • CI: cleanup jobs by @keradus in #9449
  • CI: configure Dependabot for composite actions by @kubawerlos in #9529
  • CI: do not run issue_8828_c.test on macOS for now by @kubawerlos in #9528
  • CI: fix Dependabot paths by @kubawerlos in #9530
  • CI: more of ubuntu-slim by @keradus in #9450
  • CI: move spelling checks to dedicated workflow by @keradus in #9451
  • deps: bump actions/cache from 4 to 5 in /.github/composite-actions/install-composer-deps by @dependabot[bot] in #9531
  • deps: bump actions/github-script from 8 to 9 in /.github/composite-actions/setup-php-with-composer-deps by @dependabot[bot] in #9544
  • deps: bump crate-ci/typos from 1.43.5 to 1.44.0 by @dependabot[bot] in #9476
  • deps: bump crate-ci/typos from 1.44.0 to 1.45.0 by @dependabot[bot] in #9523
  • deps: bump docker/build-push-action from 6 to 7 by @dependabot[bot] in #9486
  • deps: bump docker/login-action from 3 to 4 by @dependabot[bot] in #9477
  • deps: bump docker/metadata-action from 5 to 6 by @dependabot[bot] in #9474
  • deps: bump docker/setup-buildx-action from 3 to 4 by @dependabot[bot] in #9475
  • deps: bump docker/setup-qemu-action from 3 to 4 by @dependabot[bot] in #9472
  • deps: bump nick-invision/retry from 3 to 4 by @dependabot[bot] in #9491
  • deps: bump nick-invision/retry from 3 to 4 in /.github/composite-actions/install-composer-deps by @dependabot[bot] in #9532
  • deps: bump phpstan/phpstan from 2.1.40 to 2.1.42 in /dev-tools in the phpstan group by @dependabot[bot] in #9490
  • deps: bump phpstan/phpstan from 2.1.42 to 2.1.44 in /dev-tools in the phpstan group by @dependabot[bot] in #9503
  • deps: bump phpstan/phpstan-symfony from 2.0.14 to 2.0.15 in /dev-tools in the phpstan group by @dependabot[bot] in #9458
  • deps: bump shipmonk/dead-code-detector from 0.14.1 to 0.15.1 in /dev-tools in the shipmonk group by @dependabot[bot] in #9473
  • deps: bump shipmonk/dead-code-detector from 0.15.1 to 1.0.0 in /dev-tools in the shipmonk group by @dependabot[bot] in #9543
  • deps: update PHPStan by @kubawerlos in #9452
  • deps: upgrade deps by @keradus in #9527
  • deps: upgrade PHPUnit patch versions by @keradus in #9455
  • refactor: ConfigurableFixerTemplateFixer - move handling example file from fixing logic to definition by @keradus in #9525
  • refactor: rename PhpdocTypesNoDuplicatesFixer to PhpdocNoDuplicateTypesFixer by @paulbalandan in #9381
  • test: MethodArgumentSpaceFixer must run before NoTrailingCommaInSinglelineFixer by @kubawerlos in #9507
  • test: fix CI for Windows by @kubawerlos in #9492
  • test: use PhpUnitTestCaseStaticMethodCallsFixerTest::testInvalidConfiguration by @kubawerlos in #9460

New Contributors

Full Changelog: v3.94.2...v3.95.0

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

NewReleases is sending notifications on new releases.