New Features 🥳
- [type-declaration] Add return data provider array type from strict test method param (#7605)
- [coding-style] Add NestedTernaryToMatchRector (#7572)
- [TypeDeclaration] Register NarrowObjectReturnTypeRector to type declaration set (#7615)
Bugfixes 🐛
- [Diffs] Handle --no-diffs usage to show file have been changed if any with --dry-run + --no-diffs (#7619)
- [Php81] Skip callable variadic in array_all() on FunctionLikeToFirstClassCallableRector (#7606)
- fix a syntax error in the ArrayFirstLastRector rule documentation (#7613), Thanks @esnard!
- Narrow object return type (#7575), Thanks @Orest-Divintari!
- [type-declaration] Rename NarrowTooWideReturnType to NarrowWideUnionReturnTypeRector (#7614)
- [TypeDeclaration] Also update generic collection docblock on NarrowObjectReturnTypeRector (#7616)
- [TypeDeclaration] Do not change valid generic docblock on NarrowObjectReturnTypeRector (#7617)
- [Privatization] Do not remove readonly on promoted property on PrivatizeFinalClassPropertyRector (#7611)
Removed 💀
- [dx] help - omit explicit command name as no longer needed; remove verbosity option, use debug instead (#7620)
rectorphp/rector-symfony 🎵
- ensure reset args after loop (#864)
- Bump PHPStan to ^2.1.32 and fix test for InlineClassRoutePrefixRector (#863)
- [Symfony74] replace PropertyMetadata deprecated functions (#862), Thanks @MrYamous
- [Symfony74] update WorkflowDumpCommand namespace (#861), Thanks @MrYamous
- add property support to ErrorNamesPropertyToConstantRector (#860)
- Support converting all options to twig attributes (#859), Thanks @Spea
rectorphp/rector-phpunit 🟢
- [CodeQuality] Skip in static method on AssertFuncCallToPHPUnitAssertRector (#582)
- add implicit method call support (#581)
- add multi callbacks support (#580)
- allow extra stmt (#579)
- add dynamic instanceof support (#578)
- [code-quality] Add SimplerWithIsInstanceOfRector (#577)
- add sole instanceof support (#576)
- add use var (#575)
- add return type or empty if nothing to add (#574)
- [code-quality] Add MergeWithCallableAndWillReturnRector (#573)
- handle solo identical as well, to get better message (#572)
- always return true, as required by contract (#571)
- add external variable use (#570)
- add isset support, revert order to respect original one (#569)
- [code-quality] Add WithCallbackIdenticalToStandaloneAssertsRector (#568)
rectorphp/rector-downgrade-php ⬇️
- Bump to PHPStan ^2.1.32 and ignore false positive instanceof in OR usage (#344)