Skip to content

Releases: guanguans/rector-rules

1.4.2

19 Jan 14:01

Choose a tag to compare

1.4.2 - 2026-01-19

✨ Features

  • set: Add PHPBENCH set configuration (5136cf1)

1.4.1

19 Jan 07:06

Choose a tag to compare

1.4.1 - 2026-01-19

🐞 Bug Fixes

  • UpdatePHPStanMethodNodeParamDocblockFromNodeTypesRector: Swap method retrieval order in UpdatePHPStanMethodNodeParamDocblockFromNodeTypesRector (12cdfea)

1.4.0

19 Jan 06:47

Choose a tag to compare

1.4.0 - 2026-01-19

✨ Features

  • class: Add UpdatePHPStanMethodNodeParamDocblockFromNodeTypesRector (4b0c168)
  • class: Add UpdateClassMethodNodeParamDocblockFromNodeTypesRector (1a40dae)

📖 Documents

  • Update project description for clarity (e3894b3)

💅 Code Refactorings

  • class: Rename UpdateRectorRefactorParamDocblockFromNodeTypesRector (7d2003e)
  • rule: Rename and restructure ForbiddenSideEffectsRule (6a20b41)

1.3.0

14 Jan 05:18

Choose a tag to compare

1.3.0 - 2026-01-14

✨ Features

  • array: Add SortListItemOfSameTypeRector for sorting array items (202e6e4)

🐞 Bug Fixes

  • array: Remove unnecessary Collection dependency and improve key check (7e70eef)

📖 Documents

  • README: Update usage example in README (0e00f3d)

💅 Code Refactorings

  • SetList: Rename all.php to common.php and add rector.php (3b9fea3)
  • array: Improve array item handling in SortListItemOfSameTypeRector (60baf4a)
  • array: Rename sort_callback to sort_comparator and add sort_direction (ffb87fb)
  • array: Replace strcmp with spaceship operator for comparisons (64095a5)
  • common: Remove unused imports and update README example (e7ee465)

1.2.1

10 Jan 15:01

Choose a tag to compare

1.2.1 - 2026-01-10

✨ Features

  • exception: Add RectorError class for handling exceptions (d3db14f)

💅 Code Refactorings

  • RenameToPsrNameRector: Simplify renamer logic (a291079)
  • RenameToPsrNameRector: Simplify instance checks for UseItem (b9604e4)

1.2.0

09 Jan 14:26

Choose a tag to compare

1.2.0 - 2026-01-09

✨ Features

  • File: Add SortFuncDefinitionsRector (b8c3a1b)
  • config: Add configuration files for Rector rules (2a4c3bb)

💅 Code Refactorings

  • File: Improve sorting logic in SortFuncDefinitionsRector (83e9f8b)
  • RenameToPsrNameRector: Improve return logic for node processing (d199d62)

1.1.0

07 Jan 08:44

Choose a tag to compare

1.1.0 - 2026-01-07

✨ Features

  • File: Add SortFileNoinspectionDocblockRector (a52c37c)

💅 Code Refactorings

  • Declare: Rename AddNoinspectionDocblockToDeclareRector (6c95725)
  • UpdateRectorCodeSamplesFromFixturesRector: Improve scope handling (286baf0)

1.0.1

06 Jan 10:45

Choose a tag to compare

1.0.1 - 2026-01-06

✨ Features

  • Class: Add UpdateParameterTypeOfRectorRefactorMethodRector (e687de1)
  • Rector: Add UpdateCodeSamplesRector for code sample updates (d97c3dc)

💅 Code Refactorings

  • apply phpstan (1ba240e)
  • tests: Remove custom bootstrap and update test configuration (af219bf)
  • tests: Remove unused tests and simplify logic (b21d32f)

✅ Tests

  • rector: Add testing for rector (6d220c4)

1.0.0

03 Jan 15:16

Choose a tag to compare

1.0.0 - 2026-01-03

🎨 Styles

  • copyright: Update copyright years to 2025-2026 in headers and LICENSE (4e2c54f)

💅 Code Refactorings

  • apply inspection (7cc9d1f)
  • AbstractRector: Remove unused classes method and simplify logic (6dcf116)
  • Contract: Remove ThrowableContract and RuntimeException (5e3dab9)
  • Rector: Improve node collection and remove unused code (a3c069a)
  • RemoveNamespaceRector: Simplify node collection logic (f032aa8)
  • RenameToPsrNameRector: Improve error handling and dependency injection (0286737)

✅ Tests

  • rules: Add RenameToPsrNameRector.php and associated tests (3514b1d)
  • rules: Add SimplifyListIndexRectorTest (0d42551)

📦 Builds

  • deps-dev: Update rector/jack requirement || ^0.5 (90cfd71)

Pull Requests

  • Merge pull request #1 from guanguans/dependabot/composer/rector/jack-tw-0.4or-tw-0.5