Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

[TASK] Update rector/rector to v0.18.3 #169

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 13, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
rector/rector (source) require-dev patch 0.18.2 -> 0.18.3

Release Notes

rectorphp/rector (rector/rector)

v0.18.3: Released Rector 0.18.3

Compare Source

New Features and Changes 🥳

  • [BC] docblock changes in custom Rector rules now have to be reprinted directly in the rule -https://github.com/rectorphp/rector/issues/8201#issue-18941480955
  • [TypeDeclaration] Add return empty string defined support on ReturnTypeFromStrictScalarReturnExprRector (#​4919)
  • [TypeDeclaration] Add fallback return direct array support on ReturnTypeFromStrictNewArrayRector (#​4928)
  • [TypeDeclaration] Add init assign method call support on ReturnTypeFromStrictNewArrayRector (#​4929)
  • [TypeDeclaration] Ensure ArrayType on ReturnTypeFromStrictNewArrayRector::shouldAddReturnArrayDocType() (#​4932)
  • [TypeDeclaration] Add test fixture return docblock on init method call assign as skipped on ReturnTypeFromStrictNewArrayRector (#​4933)
  • [TypeDeclaration] Add non native function return support on ReturnTypeFromStrictScalarReturnExprRector (#​4934)
  • BC: Separated regex matching in NodeNameResolver->isName() (#​4951), Thanks @​staabm!
  • Add support for Custom Skip Voters (#​5002), Thanks @​kaczenski!
  • Implement a max jobs per worker budget (#​4965), Thanks @​staabm!
  • Prevent unnecessary calls to spl_object_id() (#​4992), Thanks @​staabm!
  • Refactor use import resolving (#​4998), Thanks @​staabm!
  • NodeNameResolver: Throw exception in BC breaking path (#​4980), Thanks @​staabm!
  • [Internals] Decouple output from AbstractRector, narrow debugging output to file path (#​4976)
  • Update docblock only when changed, directly in rector rule (#​4986)

Bugfixes 🐛

  • AddVoidReturnTypeWhereNoReturnRector: fix never type handling (#​4918), Thanks @​staabm!
  • [TypeDeclaration] Skip return after return closure on AddVoidReturnTypeWhereNoReturnRector (#​4930)
  • [TypeDeclaration] Use $type->isScalar()->yes() on AlwaysStrictScalarExprAnalyzer (#​4920)
  • Refactor BetterNodeFinder::findFirstInFunctionLikeScoped() to work with SilentVoidResolver (#​4931)
  • [NodeTypeResolver] Handle isObjectType() on new $class dynamic variable should return false compare to Object FQCN (#​4936)
  • [Testing] Fix running unit test on macOS (#​4941)
  • Faster name resolving (#​4955), Thanks @​staabm!
  • UseImportsTraverser: don't deep traverse (#​4994), Thanks @​staabm!
  • [tests] Replace wildcard e2e test with unit one (#​5000)
  • [DocBlock] Update docblock contents right in the rule (#​4999)
  • [PhpParser] Fix crash read jetbrains/phpstorm-stubs included in phpstan.phar on PHP 8.0 and PHP 7.4 (#​5001)
  • RenameFunctionRector: prevent repeated isName() calls (#​5003), Thanks @​staabm!
  • Make PhpDocINfo::removeByType() return bool to inform about changed node (#​4979)

Removed 💀

  • [cleanup] Remove deprecated NonPhpRectorInterface, PseudoNamespaceToNamespaceRector and mysql to mysqli sets (#​4927)
  • Remove UnSpreadOperatorRector as not clear value and spread used on purpose (#​4949)
  • [Naming] Remove matchesStringName() check completely from NodeNameResolver, including endsWith() method - use getName() and compare directly instead (#​4954)
  • [Performance][Php55] Remove regex replace e on RegexMatcher (#​4974)
  • Remove CurrentRectorProvider and used for docblock changes report, return bool value and node directly in the rector rule instead (#​4982)
  • Deprecated PhpDocInfo::markAsChanged() to ensure doc block is changed directly in the Rector rule (#​4987)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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.

@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Merging #169 (1016b6a) into main (18fbfbe) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##                main      #169   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        17        17           
===========================================
  Files              5         5           
  Lines             89        89           
===========================================
  Hits              89        89           

| datasource | package       | from   | to     |
| ---------- | ------------- | ------ | ------ |
| packagist  | rector/rector | 0.18.2 | 0.18.3 |
@renovate renovate bot force-pushed the renovate/rector-rector-0.18.x-lockfile branch from 98230c1 to 1016b6a Compare September 13, 2023 13:13
@mteu mteu merged commit 6cbe66a into main Sep 13, 2023
@mteu mteu deleted the renovate/rector-rector-0.18.x-lockfile branch September 13, 2023 13:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant