PackageTrack
Sign in Get early access

ergebnis/rector-rules

Provides rules for rector/rector.

1.18.3 297K downloads/mo #4023 most downloaded on Packagist ergebnis/rector-rules

What this package is like to depend on

Last release 1 months ago

06 Jul 2026

Release timing varies

gaps range from 8 days to 3 months

Nearly every release is documented

notes for 39 of 39 stable releases

Nothing withdrawn

no release was ever pulled

3 years old

39 releases · first in 2023

26 releases in the last 12 months

see the full history below

Release timeline

39 releases · Sep 2023 to Jul 2026
2024 2025 2026
Release Pre-release

Releases

latest 39
  1. 1.18.3 06 Jul 2026
    Release notes

    What's Changed

    • github-actions(deps): Bump actions/checkout from 6.0.3 to 7.0.0 by @dependabot[bot] in #357
    • github-actions(deps): Bump actions/cache from 5.0.5 to 6.1.0 by @dependabot[bot] in #359
    • github-actions(deps): Bump zizmorcore/zizmor-action from 0.5.6 to 0.5.7 by @dependabot[bot] in #360
    • composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.62.1 to 6.62.2 by @dependabot[bot] in #358
    • Fix: Reference namespaced symbols in doc blocks consistently with code by @localheinz in #361

    Full Changelog: 1.18.2...1.18.3

    Open source →
    Release notes

    For a full diff see [1.18.2...1.18.3][1.18.2...1.18.3].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to reference namespaced symbols in doc blocks consistently with code ([#361]), by [@localheinz]
    Open source →
  2. 1.18.2 22 Jun 2026
    Release notes

    What's Changed

    • github-actions(deps): Bump actions/cache from 5.0.4 to 5.0.5 by @dependabot[bot] in #340
    • composer(deps-dev): Bump ergebnis/composer-normalize from 2.50.0 to 2.51.0 by @dependabot[bot] in #342
    • composer(deps-dev): Bump phpstan/phpstan-strict-rules from 2.0.10 to 2.0.11 by @dependabot[bot] in #343
    • composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.60.2 to 6.62.0 by @dependabot[bot] in #344
    • composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.62.0 to 6.62.1 by @dependabot[bot] in #345
    • github-actions(deps): Bump shivammathur/setup-php from 2.37.0 to 2.37.1 by @dependabot[bot] in #348
    • composer(deps-dev): Bump ergebnis/composer-normalize from 2.51.0 to 2.52.0 by @dependabot[bot] in #347
    • Enhancement: Run GitHub Actions analysis with zizmor by @localheinz in #349
    • Enhancement: Enable auto-merge by @localheinz in #350
    • github-actions(deps): Bump codecov/codecov-action from 6.0.0 to 7.0.0 by @dependabot[bot] in #352
    • Fix: Move zizmor artipacked ignore for renew.yaml into configuration by @localheinz in #353
    • github-actions(deps): Bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot[bot] in #351
    • github-actions(deps): Bump shivammathur/setup-php from 2.37.1 to 2.37.2 by @dependabot[bot] in #354
    • Fix: Return null when node was not modified by @localheinz in #355

    Full Changelog: 1.18.1...1.18.2

    Open source →
    Release notes

    For a full diff see [1.18.1...1.18.2][1.18.1...1.18.2].

    Fixed

    • Adjusted Rules\Expressions\Arrays\SortAssociativeArrayByKeyRector and Rules\Expressions\Matches\SortMatchArmsByConditionalRector to return null when they do not modify a node to avoid cache invalidation ([#355]), by [@localheinz]
    Open source →
  3. 1.18.1 13 Apr 2026
    Release notes

    What's Changed

    • Enhancement: Add list of supported PHP versions by @localheinz in #338
    • Fix: Adjust RemoveNamedArgumentForSingleParameterRector to ignore first-class callables by @localheinz in #339

    Full Changelog: 1.18.0...1.18.1

    Open source →
    Release notes

    For a full diff see [1.18.0...1.18.1][1.18.0...1.18.1].

    Fixed

    • Adjusted Rules\Expressions\CallLikes\RemoveNamedArgumentForSingleParameterRector to ignore first-class callables ([#339]), by [@localheinz]
    Open source →
  4. 1.18.0 13 Apr 2026
    Release notes

    What's Changed

    • Enhancement: Implement CallLikes\RemoveNamedArgumentForSingleParameter by @localheinz in #337

    Full Changelog: 1.17.0...1.18.0

    Open source →
    Release notes

    For a full diff see [1.17.0...1.18.0][1.17.0...1.18.0].

    Added

    • Added Rules\Expressions\CallLikes\RemoveNamedArgumentForSingleParameterRector ([#337]), by [@localheinz]
    Open source →
  5. 1.17.0 09 Apr 2026
    Release notes

    What's Changed

    • Enhancement: Implement PHPUnit\ReplaceTestAttributeWithTestPrefixRector by @localheinz in #336

    Full Changelog: 1.16.0...1.17.0

    Open source →
    Release notes

    For a full diff see [1.16.0...1.17.0][1.16.0...1.17.0].

    Added

    • Added Rules\PHPUnit\ReplaceTestAttributeWithTestPrefixRector ([#336]), by [@localheinz]
    Open source →
  6. 1.16.0 01 Apr 2026
    Release notes

    What's Changed

    • github-actions(deps): Bump actions/cache from 5.0.3 to 5.0.4 by @dependabot[bot] in #329
    • github-actions(deps): Bump codecov/codecov-action from 5.5.2 to 5.5.3 by @dependabot[bot] in #328
    • github-actions(deps): Bump codecov/codecov-action from 5.5.3 to 6.0.0 by @dependabot[bot] in #330
    • Fix: Stop prematurely considering node as changed by @localheinz in #332
    • Enhancement: Generate documentation from rule configuration and code samples by @localheinz in #331
    • Enhancement: Implement Expressions\Matches\SortMatchArmsByConditionalRector by @localheinz in #333
    • Fix: Adjust Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to skip references to constants and functions by @localheinz in #334
    • Fix: Deprecate Arrays\SortAssociativeArrayByKeyRector in favor of Expressions\Arrays\SortAssociativeArrayByKeyRector by @localheinz in #335

    Full Changelog: 1.15.2...1.16.0

    Open source →
    Release notes

    For a full diff see [1.15.2...1.16.0][1.15.2...1.16.0].

    Added

    • Added Rules\Expressions\Matches\SortMatchArmsByConditionalRector ([#333]), by [@localheinz]

    Deprecated

    • Deprecated Arrays\SortAssociativeArrayByKeyRector in favor of Expressions\Arrays\SortAssociativeArrayByKeyRector ([#335]), by [@localheinz]

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to skip fully-qualified function calls and constant references ([#334]), by [@localheinz]
    Open source →
  7. 1.15.2 22 Mar 2026
    Release notes

    What's Changed

    • Fix: Adjust Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to rewrite references relative to current namespace when file has only prefix import by @localheinz in #327

    Full Changelog: 1.15.1...1.15.2

    Open source →
    Release notes

    For a full diff see [1.15.1...1.15.2][1.15.1...1.15.2].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to rewrite references relative to current namespace when file has only prefix import ([#327]), by [@localheinz]
    Open source →
  8. 1.15.1 20 Mar 2026
    Release notes

    What's Changed

    • Fix: Adjust Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to rewrite partially-qualified names when forceRelativeReferences is enabled by @localheinz in #326

    Full Changelog: 1.15.0...1.15.1

    Open source →
    Release notes

    For a full diff see [1.15.0...1.15.1][1.15.0...1.15.1].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to rewrite partially-qualified names when forceRelativeReferences is enabled ([#326]), by [@localheinz]
    Open source →
  9. 1.15.0 20 Mar 2026
    Release notes

    What's Changed

    • Fix: Add test fixtures for forceRelativeReferences option of Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector by @localheinz in #325
    • Enhancement: Add discoverNamespacePrefixes configuration option to Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector by @localheinz in #324

    Full Changelog: 1.14.1...1.15.0

    Open source →
    Release notes

    For a full diff see [1.14.1...1.15.0][1.14.1...1.15.0].

    Added

    • Added discoverNamespacePrefixes configuration option to Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to automatically discover parent namespace prefixes from file references ([#324]), by [@localheinz]
    Open source →
  10. 1.14.1 19 Mar 2026
    Release notes

    What's Changed

    • Fix: Revise test fixtures for Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector by @localheinz in #317
    • Fix: Add fixtures for Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRectorWithNamespacePrefixes targeting PHP 8.1 by @localheinz in #319
    • Fix: Add fixtures for Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRectorWithNamespacePrefixes targeting PHP 8.2 by @localheinz in #320
    • Fix: Add fixtures for Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRectorWithNamespacePrefixes targeting PHP 8.3 by @localheinz in #321
    • Fix: Add fixtures for Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRectorWithNamespacePrefixes targeting PHP 8.4 by @localheinz in #322
    • Fix: Add fixtures for Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRectorWithNamespacePrefixes targeting PHP 8.5 by @localheinz in #323
    • Fix: Adjust Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to remove imports in file where namespace is identical to namespace prefix by @localheinz in #316

    Full Changelog: 1.14.0...1.14.1

    Open source →
    Release notes

    For a full diff see [1.14.0...1.14.1][1.14.0...1.14.1].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to remove imports in file where namespace is identical to namespace prefix ([#316]), by [@localheinz]
    Open source →
  11. 1.14.0 18 Mar 2026
    Release notes

    For a full diff see [1.13.2...1.14.0][1.13.2...1.14.0].

    Added

    • Added forceRelativeReferences configuration option to Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to force references to be expressed relative to the namespace prefix even when the file namespace matches the prefix ([#315]), by [@localheinz]

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector and Rules\Files\UseImportRelativeToNamespacePrefixRector to reject arrays that are not lists ([#314]), by [@localheinz]
    Open source →
  12. 1.13.2 18 Mar 2026
    Release notes

    For a full diff see [1.13.1...1.13.2][1.13.1...1.13.2].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to remove unnecessary imports without adding a prefix import when the file namespace is the parent namespace prefix ([#312]), by [@localheinz]
    Open source →
  13. 1.13.1 18 Mar 2026
    Release notes

    For a full diff see [1.13.0...1.13.1][1.13.0...1.13.1].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to remove unnecessary imports without adding a prefix import when the file namespace matches the namespace prefix ([#312]), by [@localheinz]
    Open source →
  14. 1.13.0 17 Mar 2026
    Release notes

    For a full diff see [1.12.5...1.13.0][1.12.5...1.13.0].

    Added

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to allow configuring parent namespace prefixes for automatic discovery of namespace prefixes ([#310]), by [@localheinz]
    Open source →
  15. 1.12.5 16 Mar 2026
    Release notes

    For a full diff see [1.12.4...1.12.5][1.12.4...1.12.5].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to also rewrite fully-qualified references to namespaced symbols identical to a namespace prefix ([#303]), by [@localheinz]
    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to handle grouped use statements ([#306]), by [@localheinz]
    Open source →
  16. 1.12.4 13 Mar 2026
    Release notes

    For a full diff see [1.12.3...1.12.4][1.12.3...1.12.4].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to handle fully qualified references ([#302]), by [@localheinz]
    Open source →
  17. 1.12.3 13 Mar 2026
    Release notes

    For a full diff see [1.12.2...1.12.3][1.12.2...1.12.3].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to skip rewriting when the namespace prefix alias collides with a class, interface, trait, or enum declared in the same file ([#301]), by [@localheinz]
    Open source →
  18. 1.12.2 13 Mar 2026
    Release notes

    For a full diff see [1.12.1...1.12.2][1.12.1...1.12.2].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to support parent namespace imports ([#300]), by [@localheinz]
    Open source →
  19. 1.12.1 12 Mar 2026
    Release notes

    For a full diff see [1.12.0...1.12.1][1.12.0...1.12.1].

    Fixed

    • Adjusted Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to support overlapping namespace prefixes by deferring to the more specific prefix ([#298]), by [@localheinz]
    Open source →
  20. 1.12.0 12 Mar 2026
    Release notes

    For a full diff see [1.11.1...1.12.0][1.11.1...1.12.0].

    Added

    • Added Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to replace references to namespaced symbols (classes, functions, constants) whose fully-qualified name starts with a namespace prefix so they are relative to that prefix ([#295]), by [@localheinz]

    Fixed

    • Adjusted Rules\Arrays\SortAssociativeArrayByKeyRector and Rules\Files\UseImportRelativeToNamespacePrefixRector to reject unknown configuration keys ([#297]), by [@localheinz]

    Deprecated

    • Deprecated Rules\Files\UseImportRelativeToNamespacePrefixRector in favor of Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector ([#296]), by [@localheinz]
    Open source →
  21. 1.11.1 11 Mar 2026
    Release notes

    For a full diff see [1.11.0...1.11.1][1.11.0...1.11.1].

    Fixed

    • Adjusted Rules\Files\UseImportRelativeToNamespacePrefixRector to adjust DocBlocks as well ([#294]), by [@localheinz]
    Open source →
  22. 1.11.0 11 Mar 2026
    Release notes

    For a full diff see [1.10.0...1.11.0][1.10.0...1.11.0].

    Added

    • Added Rules\Files\UseImportRelativeToNamespacePrefixRector to allow replacing sub-namespace imports with parent namespace imports and updating references to use relative names ([#291]), by [@localheinz]
    Open source →
  23. 1.10.0 11 Mar 2026
    Release notes

    For a full diff see [1.9.0...1.10.0][1.9.0...1.10.0].

    Added

    • Added support for PHP 8.5 ([#281]), by [@localheinz]

    Fixed

    • Required rector/rector:^2.3.8 ([#290]), by [@localheinz]
    Open source →
  24. 1.9.0 21 Dec 2025
    Release notes

    For a full diff see [1.8.0...1.9.0][1.8.0...1.9.0].

    Changed

    • Adjusted Rules\Arrays\SortAssociativeArrayByKeyRector to resolve values for keys referring to ::class pseudo constants from the original name instead of the fully-qualified class name ([#265]), by [@localheinz]
    Open source →
  25. 1.8.0 08 Dec 2025
    Release notes

    For a full diff see [1.7.0...1.8.0][1.7.0...1.8.0].

    Changed

    • Adjusted Rules\Arrays\SortAssociativeArrayByKeyRector to resolve values for keys referring to ::class pseudo constants ([#258]), by [@localheinz]
    Open source →
  26. 1.7.0 17 Nov 2025
    Release notes

    For a full diff see [1.6.0...1.7.0][1.6.0...1.7.0].

    Added

    • Added Rules\Faker\GeneratorPropertyFetchToMethodCallRector to allow replacing references to deprecated properties of Faker\Generator with method calls ([#249]), by [@localheinz]

    Changed

    • Required rector/rector:^2.1.3 ([#248]), by [@localheinz]
    Open source →
  27. 1.6.0 19 Aug 2025
    Release notes

    For a full diff see [1.5.1...1.6.0][1.5.1...1.6.0].

    Changed

    • Allowed installation on PHP 8.5 ([#225]), by [@localheinz]
    Open source →
  28. 1.5.1 17 Jul 2025
    Release notes

    For a full diff see [1.5.0...1.5.1][1.5.0...1.5.1].

    Fixed

    • Removed an unnecessary condition in Rules\Arrays\SortAssociativeArrayByKeyRector ([#210]), by [@localheinz]
    • Reverted back to using strcmp as default comparison function in Rules\Arrays\SortAssociativeArrayByKeyRector ([#216]), by [@localheinz]
    Open source →
  29. 1.5.0 16 Jul 2025
    Release notes

    For a full diff see [1.4.0...1.5.0][1.4.0...1.5.0].

    Changed

    • Allowed configuring Rules\Arrays\SortAssociativeArrayByKeyRector ([#210]), by [@localheinz]
    Open source →
  30. 1.4.0 15 Apr 2025
    Release notes

    For a full diff see [1.3.0...1.4.0][1.3.0...1.4.0].

    Changed

    • Required rector/rector:^2.0.11 ([#199]), by [@localheinz]
    • Adjusted Rules\Arrays\SortAssociativeArrayByKeyRector to stop ignoring associative arrays used in sub-classes of PHPUnit\Framework\TestCase ([#200]), by [@localheinz]
    Open source →
  31. 1.3.0 08 Jan 2025
    Release notes

    For a full diff see [1.2.0...1.3.0][1.2.0...1.3.0].

    Added

    • Added support for rector/rector:^2.0.0 ([#171]), by [@localheinz]
    Open source →
  32. 1.2.0 23 Nov 2024
    Release notes

    For a full diff see [1.1.0...1.2.0][1.1.0...1.2.0].

    Added

    • Added support for PHP 8.4 ([#162]), by [@localheinz]

    Changed

    • Required rector/rector:^1.0.0 ([#161]), by [@localheinz]
    Open source →
  33. 1.1.0 27 Sep 2024
    Release notes

    For a full diff see [1.0.1...1.1.0][1.0.1...1.1.0].

    Changed

    • Allowed installation on PHP 8.4 ([#139]), by [@localheinz]
    Open source →
  34. 1.0.1 07 Feb 2024
    Release notes

    For a full diff see [1.0.0...1.0.1][1.0.0...1.0.1].

    Fixed

    • Allowed installation of rector/rector:~0.19.2 ([#77]), by [@localheinz]
    Open source →
  35. 1.0.0 06 Feb 2024
    Release notes

    For a full diff see [0.4.0...1.0.0][0.4.0...1.0.0].

    Changed

    • Required rector/rector:^1.0.0 ([#76]), by [@localheinz]
    Open source →
  36. 0.4.0 23 Jan 2024
    Release notes

    For a full diff see [0.3.0...0.4.0][0.3.0...0.4.0].

    Changed

    • Required rector/rector:~0.19.2 ([#64]), by [@localheinz]
    • Allowed installation of nikic/php-parser:^5.0.0 ([#65]), by [@localheinz]
    Open source →
  37. 0.3.0 29 Nov 2023
    Release notes

    For a full diff see [0.2.0...0.3.0][0.2.0...0.3.0].

    Added

    • Added support for PHP 8.0 ([#36]), by [@localheinz]
    • Added support for PHP 7.4 ([#37]), by [@localheinz]
    Open source →
  38. 0.2.0 28 Nov 2023
    Release notes

    For a full diff see [0.1.0...0.2.0][0.1.0...0.2.0].

    Added

    • Added support for PHP 8.3 ([#34]), by [@localheinz]

    Changed

    • Updated `rector/rector ([#3]), by [@localheinz]
    Open source →
  39. 0.1.0 30 Sep 2023
    Release notes

    For a full diff see fd198f0...0.1.0.

    Added

    • Added Rules\Arrays\SortAssociativeArrayByKeyRector (#1), by @localheinz
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive