Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rector/rector requirement from ^0.17 || ^0.18 to ^0.17 || ^0.18 || ^0.19 #48

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 9, 2024

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

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)

…8 || ^0.19

Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version.
- [Release notes](https://github.com/rectorphp/rector/releases)
- [Commits](https://github.com/rectorphp/rector/commits/0.19.0)

---
updated-dependencies:
- dependency-name: rector/rector
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Jan 9, 2024
Copy link

codecov bot commented Jan 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f6aa525) 45.73% compared to head (35a2952) 45.73%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #48   +/-   ##
=========================================
  Coverage     45.73%   45.73%           
  Complexity      339      339           
=========================================
  Files            74       74           
  Lines          1314     1314           
=========================================
  Hits            601      601           
  Misses          713      713           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@guanguans guanguans merged commit 0bddf73 into main Jan 10, 2024
12 of 15 checks passed
@delete-merged-branch delete-merged-branch bot deleted the dependabot/composer/rector/rector-tw-0.17or-tw-0.18or-tw-0.19 branch January 10, 2024 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant