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 dependency rector/rector to v0.18.3 #1191

Merged
merged 1 commit into from
Sep 13, 2023
Merged

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 minor 0.17.13 -> 0.18.3

Release Notes

rectorphp/rector (rector/rector)

v0.18.3: Released Rector 0.18.3

Compare Source

New Features and Changes 🥳

  • [TypeDeclaration] Add return empty string defined support on ReturnTypeFromStrictScalarReturnExprRector (#​4919)
  • [TypeDeclaration] Add append in loop support on ReturnTypeFromStrictNewArrayRector (#​4922)
  • [TypeDeclaration] Add fallback return direct array support on ReturnTypeFromStrictNewArrayRector (#​4928)
  • [TypeDeclaration] Add init assign method call support on ReturnTypeFromStrictNewArrayRector (#​4929)
  • [TypeDeclaration] Skip return after return closure on AddVoidReturnTypeWhereNoReturnRector (#​4930)
  • [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] 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)

v0.18.2: Released Rector 0.18.2

Compare Source

New Features and Changes 🥳

  • Add MyCLabs enum equals + keeping methods (#​4645), Thanks @​K0nias!
  • [TypeDeclaration] skip variadic constructor param of mixed type on AddParamTypeFromPropertyTypeRector (#​4887), Thanks @​Celebrate-Reinhard!
  • [TypeDeclaration] Do not add default value when assigned in __construct() on TypedPropertyFromStrictGetterMethodReturnTypeRector (#​4886)
  • [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#​4890)
  • Add single value concat support to EncapsedStringsToSprintfRector (#​4897)
  • Add number support to concat EncapsedStringsToSprintfRector (#​4898)
  • [DeadCode] Remove @​return void on return self on RemoveUselessReturnTagRector (#​4894)
  • Add test case for caching $rectorConfig->rules() changed (#​4903)
  • [CodeQuality] Add NumberCompareToMaxFuncCallRector (#​4914)
  • [TypeDeclaration] Add return self object support on ReturnTypeFromStrictFluentReturnRector (#​4915)
  • [TypeDeclaration] Add return static object support on ReturnTypeFromStrictFluentReturnRector (#​4916)

Bugfixes 🐛

  • [Caching] Add VersionResolver::PACKAGE_VERSION to FileHashComputer::compute() so cache cleared on composer update got new version (#​4904)
  • [TypeDeclaration] Using ClassMethodReturnTypeOverrideGuard on ReturnTypeFromStrictParamRector (#​4878)
  • [e2e] $rectorConfig->skip() should not skip inside different path over config (#​4882)
  • Fix missing default string in TypedPropertyFromStrictGetterMethodReturnTypeRector (#​4885)
  • Fix tests fixture updater (#​4892)
  • Fix union type check of object (#​4893)
  • Simplify isMatchingUnionType() (#​4895), Thanks @​staabm!
  • Skip identical to false in SimplifyBoolIdenticalTrueRector, as exact comparison is stronger than negated expression (#​4901)
  • Fix Rector invalidation in case of changes sets or rules (#​4902)
  • [TypeDeclaration] Skip mixing native + docblock union assign on TypedPropertyFromAssignsRector (#​4905)
  • StrictArrayParamDimFetchRector: Skip objects (#​4907), Thanks @​staabm!
  • FamilyRelationsAnalyzer: final classes can't have children (#​4913), Thanks @​staabm!
  • [Config] Remove $isBound usage as cause empty configuration on RectorConfig (#​4880)

v0.18.1: Released Rector 0.18.1

Compare Source

This release is accompanied by 2 posts that explains behind the scenes context:


New Features and Changes 🥳

  • [CI] Narrow tests to single job, as now takes 20 s 🚀 (#​4827)
  • [Config] Handle $rectorConfig->import() with wildcards * config (#​4832)
  • [DX] Display rule count in list-rules (#​4848)
  • Skip PHPDoc return type in AddReturnTypeDeclarationBasedOnParentClassMethodRector (#​4809), Thanks @​staabm!
  • AddReturnTypeDeclarationBasedOnParentClassMethodRector: don't trust phpdoc types (#​4810), Thanks @​staabm!
  • [DX] Add optional testdox/pest like output to get exact test metrics per unit test fixture (#​4821)
  • [TypeDeclaration] Add new array replaced with array on ReturnTypeFromStrictNewArrayRector (#​4825)
  • [DX] Merge PhpRectorInterface to RectorInterface as identical contract and separation no longer needed (#​4812)
  • [PHPStan] Avoid removing bleeding edge from phar include, let user handle own phpstan configuration (#​4840)

Bugfixes 🐛

  • [Php73][Php80] Handle empty long array syntax default value on SensitiveConstantNameRector+AddParamBasedOnParentClassMethodRector (#​4837)
  • [Config] Add merging of rules configuration, call configure() just once (#​4838)
  • Fix RenamePropertyToMatchTypeRector to skip Laravel collections and avoid accident rename (#​4811)
  • [BetterPhpDocParser] Enable textBetweenTagsBelongsToDescription on BetterPhpDocParser extends PhpDocParser (#​4817)
  • [PHPUnit] Fix extreemely slow PHPUnit run on data providers with objects (#​4823)
  • [AutoImport] Handle case insensitive name collide on auto import (#​4829)
  • [Traverser] Set explicitely nodeConnectingVisitorCompatibility: false config in config/phpstan/static-reflection.neon (#​4841)
  • replaces get_headers $associative with bool (#​4850), Thanks @​mvhirsch!
  • [Php55][Renaming] Handle rename string on combination StringClassNameToClassConstantRector+RenameStringRector (#​4869)
  • [Php80] Handle crash parent default empty array/string param on AddParamBasedOnParentClassMethodRector (#​4833)

Removed 💀

  • Remove deprecated FileProcessorInterface (#​4835)
  • Remove SwapFuncCallArgumentsRector as keeps swaping to infinity, use custom rule instead (#​4874)

v0.18.0: Released Rector 0.18.0 with Laravel container ⚡️

Compare Source

New Features and Changes 🥳

  • [DI] Switch container to Laravel - final step 🥳 (#​4698)
  • [DI] Remove symfony/dependency-injection dependency (#​4796)
  • [DI] Add symfony config BC warnings layer, to inform about an upgrade (#​4800)
  • Add possibility to add multiple phpstan configs (#​4798), Thanks @​alexander-schranz!
  • [DX] Make use of addParameter() (#​4801)
  • Add deprecation warning for FileProcessorInterface (#​4808)

Bugfixes 🐛

  • [DeadCode] Handle duplicated annotation on space before close parentheses on RemoveUselessParamTagRector (#​4795)
  • Fix skip() Rector class, make container forget it comleteely (#​4807)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

@renovate renovate bot added the dependencies Add or update dependencies label Sep 13, 2023
@aerrasti aerrasti merged commit c875446 into main Sep 13, 2023
11 checks passed
@aerrasti aerrasti deleted the deps-rector-rector-0.x branch September 13, 2023 08:51
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Add or update dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant