mail
mail copied to clipboard
chore(deps): bump rector/rector from 0.18.10 to ^0.19.8 (main)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| rector/rector (source) | ^0.18.10 -> ^0.19.8 |
Release Notes
rectorphp/rector (rector/rector)
v0.19.8
v0.19.7: Released Rector 0.19.7
Bugfixes :bug:
- [TypeDeclaration] Skip assign in construct with method call property same name on RestoreDefaultNullToNullableTypePropertyRector (#β5556)
- [Privatization] Fix reprint with attribute on FinalizeTestCaseClassRector (#β5557)
- [DX] Fix missing Rector\RectorGenerator\Exception\ConfigurationException (#β5558)
- Fix platform version resolution, use require first (#β5555)
- bump template version (https://github.com/rectorphp/rector-src/commit/02a088c735b9b829c8f0dec445e71dea70e559bc)
v0.19.6: Released Rector 0.19.6
New Features and Changes :partying_face:
- [EarlyReturn] Improve RemoveAlwaysElseRector to handle multiple ElseIfs (#β8178) (#β5521), Thanks @βpkvach!
- [Privatization] Add FinalizeTestCaseClassRector (#β5539)
- Add support for YieldFrom into places where Yield_ is checked (#β5499), Thanks @βinteger!
- [Transform] Add RectorConfigBuilderRector (#β5551)
- [DX] Warn about run on /vendor directory (#β5525)
- [DX] PHP sets should not disable all other version-based rules (#β5527)
- [stabilize] Deprecate FinalizeClassesWithoutChildrenRector as causing bugs without full context (#β5535)
Bugfixes :bug:
- Fix xdebug handling (#β5544), Thanks @βstaabm!
- Added 4 methods into RectorConfigBuilder (#β5524), Thanks @βPerf!
- Fix AddMethodCallBasedStrictParamTypeRector if already has a type (#β5530)
- [CodingStyle] Return null on no change on StrictArraySearchRector (#β5528)
- [Php81] Allow nullable union on NullToStrictStringFuncCallArgRector (#β5532)
- [stabilize] Deprecate FinalizePublicClassConstantRector as not reliable and causes uncontroller changed (#β5534)
- [TypeDeclaration] Change bool to false or true docblock when union has false/true standalone type on ReturnUnionTypeRector (#β5543)
- [EarlyReturn] Skip append variable in PreparedValueToEarlyReturnRector (#β8390) (#β5545), Thanks @βpkvach!
- Fix make ReadOnlyPropertyRector skip if traits are used, as not reliable (#β5548)
- Kick off basic rector.php with simpler and more practical rule (#β5552)
Removed :skull:
- Exclude finalize rule from private set, to keep safer (#β5523)
- [Performance] Remove CollectedData on ProcessResult (#β5520)
- [stabilize] Remove family tree check from ClassMethodParamVendorLockResolver as not reliable (#β5536)
- [stabilize] Remove child classes from MixedTypeRector as not reliable (#β5537)
- [stabilize] Remove last children method checks (#β5538)
v0.19.5: Released Rector 0.19.5
New Features :tada:
- [Autoloading] Allow to define bootstrapFiles([DIR . '/some.phar']) on BootstrapFilesIncluder (#β5518)
- add withPhpSets() methods (#β5519)
v0.19.4: Released Rector 0.19.4
Bugfixes :bug:
- Fix configured rule (#β5517)
v0.19.3: Released Rector 0.19.3
New Features ahd Changes :partying_face:
- [Config] Add RectorConfigBuilder (#β5503)
- Add gitlab to "setup-ci" command (#β5497)
- Add "custom-rule" command to make creating rules easy (#β5498)
- [Windows] Rework add windows support on tests CI (#β5504)
- make literal separator optional, as rather coding style and not always desired (#β5505)
Bugfixes :bug:
- [Php70] Skip inside Encapsed on ThisCallOnStaticMethodToStaticCallRector (#β5481)
- [Performance] Cache PHP version features on reading composer.json on PhpVersionProvider (#β5484)
- Fix phpstan (#β5489)
- [Config] Restore default values for RectorConfig->parallel() config similar to original <=0.18.x version (#β5472)
- [Performance][PhpParser] Deprecate InlineCodeParser::parse(), extract into parseFile() and parseString() (#β5482)
- [CodeQuality] Skip surplus open square bracket on SimplifyRegexPatternRector (#β5494)
- [AutoImport] Skip start with <?= short open tag on auto import (#β5496)
- [Testing] Deprecate FileInfoParser, use existing TestingParser instead (#β5501)
- custom copy path fix (#β5502)
- [DX] Allow Arg in value resolver, as often used and intuitive (#β5512)
- [Windows] Support replace \r\n on DocBlockInliner (#β5513)
- [Php83] add string type to concat constant (#β5516), Thanks @βjdohuutin!
Removed :skull:
- [Renaming] Remove namespace renames in ClassRename, as it should only rename references, not move to new namespace (#β5487)
- [Renaming] Remove rename class name (#β5488)
v0.19.2: Released Rector 0.19.2
New features and Changes :tada:
- [DX] Depreate heavy and conflicting Symfony/Twig/PHPUnit level sets (#β5477)
- Remove collectors, as performance very costly and not practically useful (#β5470)
Bugfixes :bug:
- Fix repeated timeouts on CI - https://github.com/rectorphp/rector/issues/8403, https://github.com/rectorphp/rector/issues/8396
- Bump PHPStan to 1.10.56 (#β5471)
- Remove collector interface and fix SpatieEnumClassToEnumRector already has underscore to double underscore (#β5473)
- [DX] Depreate heavy and conflicting Symfony/Twig/PHPUnit level sets (#β5477)
Removed :skull:
- [Performance] Remove unused AttributeKey::ARGUMENT_POSITION (#β5469)
- [Autoload] Remove src/core_namespace_aliases.php (#β5476)
v0.19.1
v0.19.0: Released Rector 0.19.0
In this release we merged 2 directories into /src to speed up class loading and make work with code easier. This leads to BC change in namespace for your custom rules:
-use Rector\Core\
+use Rector\
That's it!
New Features :partying_face:
- [psr-4] Move /packages directory to /src under single Rector\ namespace (#β5414)
- [Arguments] Allow no default value on ArgumentAdderRector (#β5382)
- Add related polyfill interface to other PHP 8.0/7.3 rules (#β5389)
- [CodingStyle] Add RemoveUselessAliasInUseStatementRector (#β5394)
- [Php83] Add CombineHostPortLdapUriRector (#β5397)
- [TypeDeclaration] optionally only add types for hard coded return values in
ReturnTypeFromStrictScalarReturnExprRector(#β5364), Thanks @βRobertMe! - Add phpstan native cond types for getName() for nodes that always return a string (#β5413)
- [Strict] Add StaticProperty supporton may be unitialized static property on DisallowedEmptyRuleFixerRector (#β5428)
- [Php83] Add implements interface support on AddOverrideAttributeToOverriddenMethodsRector (#β5429)
- [cs] Make use of new ECS config (#β5445)
Bugfixes :bug:
- [TypeDeclaration] Add false and true in union support on ReturnUnionTypeRector (#β5355)
- Skip classes without final and exception as possibly invoke child implement in AddVoidReturnTypeWhereNoReturnRector (#β5381)
- Skip non-final class method with no content in AddVoidReturnTypeWhereNoReturnRector (#β5386)
- [TypeDeclaration] Allow add void return type on magic
__invoke()method on AddVoidReturnTypeWhereNoReturnRector (#β5376) - Add
ReturnTypeFromStrictBoolReturnExprRectorsupport for if/else returns (#β5384) - Skip void without final keyword in ReturnNeverTypeRector as could be implemented with more precise children (#β5379)
- Fix StrictArrayParamDimFetchRector for string access (#β5383)
- Fix variable to property fetch update in ClassPropertyAssignToConstructorPromotionRector (#β5385)
- [Php] Fix filter cache on PolyfillPackagesProvider (#β5390)
- [Parallel] Fix missing --xdebug in WorkerCommand line on WorkerCommandLineFactory when --xdebug provided (#β5398)
- Bump phpstan to 1.10.50 (#β5399)
- [Php83] Handle dynamic host and port values on CombineHostPortLdapUriRector (#β5401)
- [config] Extract RectorConfigValidator and handle config validation there (#β5404)
- [psr-4] Update Rector core test reference (#β5410)
- [cleanup] Decouple changelog generator (#β5412)
- [Strict] Handle may be unitialized property on DisallowedEmptyRuleFixerRector (#β5409)
- Bump min. version to PHP 8.2 - readonly classes (#β5415)
- Decouple LongAndDependentComplexRectorRule to cognitive-complexity package (#β5427)
- [TypeDeclaration] Skip with empty() check on StrictArrayParamDimFetchRector (#β5432)
- [TypeDeclaration] Allow both integer and string index array on StrictArrayParamDimFetchRector (#β5433)
- [TypeDeclaration] Skip re-assign with call and use as arg on StrictArrayParamDimFetchRector (#β5434)
- [CodeQuality] Handle crash with call inside loop on SimplifyForeachToCoalescingRector (#β5436)
- [TypeDeclaration] Handle with default null on ParamTypeByMethodCallTypeRector (#β5437)
- [NodeTypeResolver] Handle crash PHPStan\File\CouldNotReadFileException: Could not read file on IntermediateSourceLocator (#β5438)
- Allows to convert Spatie enum names to snake upper case (#β5435), Thanks @βJoolsMcFly!
- fix: RenameMethodRector should handle NullsafeMethodCall (#β5444), Thanks @βnikophil!
- [Php80][CodeQuality] Handle crash on ChangeSwitchToMatchRector + TernaryFalseExpressionToIfRector on under if else (#β5446)
- Skip cond with side effect in RemoveDeadConditionAboveReturnRector (#β5424)
- [DeadCode] Skip nullable array on RemoveUnusedNonEmptyArrayBeforeForeachRector (#β5375)
- Keep called method in RemoveEmptyClassMethodRector (#β5425)
Removed :skull:
- [DeadCode] Remove RemoveJustPropertyFetchForAssignRector as tailored for single case of private project, not practical for generic use (#β5418)
- remove array spread from coding style, as often part of personal preference (https://github.com/rectorphp/rector-src/commit/a326b8504d37093f639245da0b283f588f954890)
v0.18.13: Released Rector 0.18.13
New Features :partying_face:
- [DeadCode] Add Function_ support on RemoveUselessReturnTagRector (#β5325)
- [TypeDeclaration] Add MergeDateTimePropertyTypeDeclarationRector (#β5327)
- [DeadCode] Add Function_ support on RemoveUselessParamTagRector (#β5331)
- [DeadCode] Add RemoveNullTagValueNodeRector (#β5352)
Bugfixes :bug:
- [Php83] Fix const from applying incorrect types (#β5326), Thanks @βpeterfox!
- [TypeDeclaration] Fix missing change type to DateTimeInterface on MergeDateTimePropertyTypeDeclarationRector (#β5329)
- [TypeDeclaration] Handle DateTimeInterface from use statement on MergeDateTimePropertyTypeDeclarationRector (#β5330)
- [TypeDeclaration] Handle assign $this on TypedPropertyFromAssignsRector (#β5333)
- Fix array type if property is used in TypedPropertyFromStrictConstructorRector (#β5339)
- [Naming] Skip DateTimeImmutable on RenamePropertyToMatchTypeRector (#β5340)
- [PHP 7.4] Skip typed properties in the set, as standalone set now available (#β5342)
- [TypeDeclaration] Skip has child return different type on ReturnNeverTypeRector (#β5343)
- [Experiment][TypeDeclaration] Allow change abstract class methods with body on ReturnType*Rector (#β5344)
- [Php55] Make StringClassNameToClassConstantRector configurable to keep first pre-backslash string configurable (#β5354)
- [TypeDeclaration] Skip casted to (array) on StrictArrayParamDimFetchRector (#β5356)
- [TypeDeclaration] Return new static from different object on ReturnTypeFromStrictTypedCallRector (#β5357)
- [TypeDeclaration] Allow return static from under function on ReturnTypeFromStrictTypedCallRector (#β5358)
- [Naming] Skip
$thisin RenameForeachValueVariableToMatchExprVariableRector (#β5360), Thanks @βsreichel! - [Transform] Do not create a new node if the existing node is already the correct one on AttributeKeyToClassConstFetchRector (#β5328), Thanks @βSerethiX!
- Bump to php parser 4.18 (#β5362)
- [CodeQuality] Skip Superglobals variable on SimplifyEmptyCheckOnEmptyArrayRector (#β5369)
- [Php55] Handle crash after exit() on GetCalledClassToSelfClassRector (#β5372)
- [CodeQuality] Skip method call on else on TernaryFalseExpressionToIfRector (#β5373)
- Remove return type in case of never in RemoveUselessReturnTagRector (#β5323), Thanks @βstaabm!
- [DeadCode] Remove unused @βreturn mixed on RemoveUselessReturnTagRector (#β5332)
- [DeadCode] Skip has parent class with __call() magic method on RemoveParentCallWithoutParentRector (#β5336)
- [PHP 5.5] Remove extra preslash in class reference, as in practice removal manually (#β5338)
- [DeadCode] Remove null as never used param type in RemoveUselessParamTagRector (#β5348)
- Remove json throw on error rule from PHP 7.3 set, as changed behavior and must be applied on purpose (#β5349)
- [Testing] Remove unnecessary set Parameter Source on TestingParser (#β5371)
v0.18.12: Released Rector 0.18.12
New Features :partying_face:
- [CodeQuality] Add RemoveUselessIsObjectCheckRector (#β5316)
- [PHP83] Implements a rule to add types to class constants (#β5290), Thanks @βpeterfox!
Bugfixes :bug:
- [TypeDeclaration] Skip iterable already there in AddReturnTypeDeclarationFromYieldsRector (#β5291)
- [TypeDeclaration] Remove ParamTypeFromStrictTypedPropertyRector as seems similar feature with AddParamTypeFromPropertyTypeRector (#β5293)
- [CodingStyle] Remove AddArrayDefaultToArrayPropertyRector as based on docblock types and public contract, better use type declaration set instad (#β5298)
- [TypeDeclaration] Skip return void in abstract empty class in AddVoidReturnTypeWhereNoReturnRector (#β5311)
- [Php80] Skip PDO::query() on AddParamBasedOnParentClassMethodRector (#β5313)
- [TypeDeclaration] Add If else assign support on TypedPropertyFromAssignsRector (#β5314)
- [CodeQuality] Make CommonNotEqualRector skip if not <> (#β5292)
- [Naming] Skip singularize "cms" on RenameForeachValueVariableToMatchExprVariableRector (#β5294)
- [TypeDeclaration][Performance] Check typed param already early on ParamTypeByMethodCallTypeRector (#β5295)
- [Strict] Fix DisallowedEmptyRuleFixerRector empty() allow string '0' check (#β5296)
- [EarlyReturn] Skip duplicating complex expression in ChangeAndIfToEarlyReturnRector (#β5301)
- [Scoped] Exclude symfony/console/Debug/CliRequest.php from parallel-lint PHP 7.2 syntax check (#β5304)
- Skip RenameMethodRector in never (#β5305), Thanks @βstaabm!
- [CodeQuality] Skip with else on SimplifyForeachToCoalescingRector (#β5307)
- [Doc] Typo fix on sample code documentation on SimplifyForeachToCoalescingRector (#β5308)
- [Privatization] Skip call non-private method on non-final class on PrivatizeLocalGetterToPropertyRector (#β5309)
- [Privatization] Fix first class callable in PrivatizeLocalGetterToPropertyRector (#β5310)
- [TypeDeclaration] Keep constant false return type from strict native call (#β5223), Thanks @βtomi85!
- [PHP 7.0] Skip mt_rand() replacement as not valuable (#β5315)
- [Strict] Allow check '0' empty zero on BooleanInTernaryOperatorRuleFixerRector on string type (#β5297)
- Fix annotation to attribute parsing string (#β5317)
- [Instanceof] Fix combination of dead instance and compare (#β5319)
- Remove isPositiveInteger() check for third argument to strpos() (#β5257), Thanks @βikari7789!
- Remove return type in case of void in RemoveUselessReturnTagRector (#β5318)
- [DeadCode] Skip @βreturn never with void on RemoveUselessReturnTagRector (#β5320)
- [DeadCode] Remove useless nullable @βreturn doc on RemoveUselessReturnTagRector (#β5321)
v0.18.11: Released Rector 0.18.11
Bugfixes :bug:
- [DeadCode] Skip multi no stmts on RemoveDuplicatedCaseInSwitchRector (#β5258)
- [Performance][Renaming] Remove unnecessary array_reverse() on RenameClassRector (#β5266)
- [TypeDeclaration] Skip default not array type on StrictArrayParamDimFetchRector (#β5259)
- [TypeDeclaration] Skip echo-ed on StrictArrayParamDimFetchRector (#β5260)
- [Php71] Skip re-assigned as array on AssignArrayToStringRector (#β5261)
- [Php71] Ensure re-assign after definition on AssignArrayToStringRector (#β5262)
- [Renaming] Handle Rename no namespace to namespaced class with existing use statements (#β5264)
- [Renaming][Performance] Re-structure check namespace only on renamed node got Namespace_ (#β5265)
- [Php81] Skip increment/decrement on ReadOnlyPropertyRector (#β5267)
- [TypeDeclaration] Deprecate TypedPropertyFromStrictGetterMethodReturnTypeRector as depends on missing context and creates invalid code (#β5269)
- [AutoImport] Fixing auto import on multiple @β\ usage (#β5271)
- [Performance][Renaming] Use FullyQualified on RenameClassRector (#β5272)
- [AutoImport] Handle complex usage of multiple @β\ combined with other doc (#β5273)
- [AutoImport] Handle multi @β\ usage on multiline description (#β5274)
- [Php80] Handle FQCN @β\ usage on AnnotationToAttributeRector (#β5240)
- [BetterPhpDocParser] Handle nested doctrine annotation with single quote content (#β5281)
- [Privatization] Skip method with parent call (#β5283)
- [BetterPhpDocParser] Use ORIG_NODE attribute on DoctrineAnnotationDecorator on handle @β\ after generic (#β5285)
- [Php80] Allow subnamespace from use statements support on AnnotationToAttributeRector (#β5287)
Removed :skull:
- Remove deprecated Rector rules (#β5270)
Configuration
π Schedule: Branch creation - "before 5am on wednesday" in timezone Europe/Vienna, Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.