Update rector/rector requirement from ^0.14 || ^0.15 || ^0.16 || ^0.17 || ^0.18 to ^0.14 || ^0.15 || ^0.16 || ^0.17 || ^0.18 || ^0.19
Updates the requirements on rector/rector to permit the latest version.
Release notes
Sourced from rector/rector's releases.
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
🥳
- [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
🐛
- [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
ReturnTypeFromStrictBoolReturnExprRector
support 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)
... (truncated)
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)