Skip to content

Released Rector 0.12.17

Compare
Choose a tag to compare
@TomasVotruba TomasVotruba released this 03 Mar 12:26
· 4618 commits to main since this release

New Features 🎉

  • [DX] Make progress bar less verbose on CI (#1797), #6996
  • Remove min php version from OptionalParametersAfterRequiredRector (#1814), Thanks @leighman!
  • [CodeQuality] Extend SimplifyForeachToArrayFilterRector with compare cond (#1820)
  • Add Projects using Rector section to README.md (#1881), Thanks @Wirone!

Bugfixes 🐛

  • [Php74] Skip mixed type on TypedPropertyRector on auto import enabled (#1798), Thanks @connerbw!
  • [Php74] Handle Multiple types with NullType on TypedPropertyRector when PHP 8.0 Feature enabled (#1803), Thanks @samsonasik!
  • [Php74] Skip null|false type on TypedPropertyRector on php 8.0 feature enabled (#1804), Thanks @samsonasik!
  • [TypeDeclaration] Use @return type on Generator on ReturnTypeDeclarationRector (#1794), Thanks @samsonasik!
  • [Php74] Skip variable FuncCall $fn() on ReservedFnFunctionRector (#1815), Thanks @samsonasik!
  • [TypeDeclaration] Skip @inheritdoc on PropertyTypeDeclaration (#1752), Thanks @oprypkhantc!
  • [Php81] Skip used as ArrayDimFetch on Arg on side effect FuncCall on ReadOnlyPropertyRector (#1822), Thanks @samsonasik!
  • Skip removing Psalm PhpDocTagNode (#1829), Thanks @rajyan!
  • Fix annotation to attribute rector with doctrine table and nested uniqueConstraints option (#1850), Thanks @acrobat!
  • [Php81] Add ConstFetch and ClassConstFetch arg support on NewInInitializerRector (#1848), Thanks @samsonasik!
  • Do not prepend a \ to the type, if it is already Fully Qualified (#1863), Thanks @mkrauser!
  • [Core] Fixing applied rules not shown when refactor() only change docblock (#1861), Thanks @samsonasik!
  • [DowngradePhp72] Handle in assign on DowngradePregUnmatchedAsNullConstantRector (#1872), Thanks @samsonasik!

Changes ⚙️

  • Remove deprecated show command (#1796)
  • [DX] Deprecate disabling of import options to keep configuration simpler (#1817)
  • [DX] Inline PARALLEL_SYSTEM_ERROR_COUNT_LIMIT option to keep user scope outside internal system (#1818)
  • Deprecate RemovingStatic rules as very narrow use case in generic rules (#1819)
  • [DX] Remove GenericClassMethodParamRector, rather PHPStorm one-time refactoring job (#1830)
  • [DX] Remove SingleToManyMethodRector, rather one time job useful for PHPStorm (#1831)
  • [DX] Remove MoveValueObjectsToValueObjectDirectoryRector, should be handled by PHPStorm refactoring and PHPStan rule checks (#1832)
  • [DX] Remove deprecated constants (#1833)
  • [DX] Remove MoveServicesBySuffixToDirectoryRector, better handle by PHPStan + PHPStorm refacor (#1834)
  • [DX] Remove MoveInterfacesToContractNamespaceDirectoryRector as breaky, use PHPStan rule instead (#1835)
  • [DX] Remove MoveEntitiesToEntityDirectoryRector, use PHPStan rule + PhpStorm refactoring instead (#1836)