Releases
0.12.8
New Features 🎉
[PHP 8.2] make AddAllowDynamicPropertiesAttributeRector configurable (#1391 ), Thanks @mallardduck !
[PHP 8.2] Add a RemoveAllowDynamicPropertyAttribute rule (#1445 ), Thanks @samsonasik !
Composer > Define allowed plugins (#1464 ), Thanks @ruudk !
[DowngradePhp80] Add ArrowFunction support on DowngradeMixedTypeDeclarationRector (#1477 ), Thanks @samsonasik !
Changes ➡️
[Downgrade Php 7.2] Add opt-out parameter for unsafe types to avoid piling list of safe types (#1448 )
[Downgrade] Drop SAFE_TYPES and SAFE_TYPES_TO_METHODS constants, use UNSAFE_TYPES_TO_METHODS instead (#1451 ), Thanks @samsonasik !
[DX] Warn about deprecated constant configuration (#1444 )
warn only about deprecated constants (rectorphp/rector-src@fae3f77 )
drepcate more configure constants (#1446 )
rector-generator should be a normal requirement (#1453 ), Thanks @wernerkrauss !
Bugfixes 🐛
Fix phpstan configured parser to treat project with its code version (#1480 )
[TypeDeclaration] Add mixed support for AddParamTypeDeclarationRector (#1476 )
[TypeDeclaration] Add void upper inner function has return on ReturnTypeDeclarationRector (#1447 ), Thanks @samsonasik !
[Php80] Handle param with default value on AddParamBasedOnParentClassMethodRector (#1452 ), Thanks @samsonasik !
[Php80] Add null default value when child more params no default value AddParamBasedOnParentClassMethodRector (#1454 ), Thanks @samsonasik !
[CodeQuality] Handle inner function return exactly DateTime on DateTimeToDateTimeInterfaceRector (#1463 ), Thanks @samsonasik !
[Php80] Handle parent with typed param on AddParamBasedOnParentClassMethodRector (#1455 ), Thanks @samsonasik !
Correct link in docs (#1465 ), Thanks @PhilETaylor !
[TypeDeclaration] Handle inner Closure on ReturnTypeFromReturnNewRector (#1467 ), Thanks @samsonasik !
[Php74] Do not remove Array Shape docblock on TypedPropertyRector (#1466 ), Thanks @samsonasik !
[TypeDeclaration] Handle inner ClassMethod on ReturnTypeFromStrictTypedPropertyRector (#1470 ), #6845 , Thanks @samsonasik !
[Core] Fix undefined constant ReflectionClassConstant::IS_PUBLIC in php 7.x (#1474 ), Thanks @samsonasik !
[DowngradePhp73] Handle (array) cast on DowngradeArrayKeyFirstLastRector (#1478 ), Thanks @samsonasik !
You can’t perform that action at this time.