Skip to content

Bump rector/rector from 0.12.23 to 0.15.1

Wesley Klop requested to merge dependabot/composer/rector/rector-0.15.1 into develop

Created by: dependabot[bot]

Bumps rector/rector from 0.12.23 to 0.15.1.

Release notes

Sourced from rector/rector's releases.

Released Rector 0.15.1

New Features :partying_face:

  • [CodingStyle] Split SplitGroupedConstantsAndPropertiesRector to SplitGroupedClassConstantsRector and SplitGroupedPropertiesRector (#3158)
  • Add compatible phpstan/phpdoc-parser 0.15 (#3157)

Bugfixes 🐛

  • Skip short class names in UseClassKeywordForClassNameResolutionRector (#3156)
  • [Core] Fix crash indentation on indent(\t, 1) config (#3155)
  • [TypeDeclaration] Skip union mixed on TypedPropertyFromAssignsRector (#3160)
  • [TypeDeclaration] Handle Anonymous class extends existing class in union (#3161)
  • Add skipped Rectors to list-rules (#3162)
  • [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
  • [TypeDeclaration] Skip multi return types on ReturnTypeFromReturnDirectArrayRector (#3164)
  • [CodeQuality] Skip stdClass in IssetOnPropertyObjectToPropertyExistsRector, as always nested (#3166)
  • Do not apply property promotion to parameters with the SensitiveParameter attribute (#3165), Thanks @​mbabker!
  • [TypeDeclaration] Skip void return on AddArrowFunctionReturnTypeRector (#3167)
  • [Php82] Skip ReadOnlyClassRector on has parent non-readonly class (#3169), Thanks @​Yoann-TYT!
  • [CodeQuality] Handle BooleanNot on SimplifyEmptyCheckOnEmptyArrayRector (#3170)
  • [Core] Use FullyQualifiedObjectType and ThisType detection for local property fetch on PropertyFetchAnalyzer (#3172)
  • [CodeQuality] Skip non typed property no default value never assigned on SimplifyEmptyCheckOnEmptyArrayRector (#3171)
  • [PHPStanStaticTypeMapper] Handle Nullable Type on UnionType on UnionTypeMapper when possible (#3173)
  • [CodeQuality][CodingStyle] Handle crash on SimplifyIfReturnBoolRector+NewlineAfterStatementRector+StringClassNameToClassConstantRector (#3175)
  • [DeadCode] Skip Class Constant used in Enum on RemoveUnusedPrivateCla… (#3174), Thanks @​eliashaeussler!
  • [Php80] Do not remove Parameter attribute on ClassPropertyAssignToConstructorPromotionRector (#3179)
  • [PHP 8.1] Skip trait in NullToStrictStringFuncCallArgRector as unknown context (#3180)
  • Fix trait property visibility in PrivatizeFinalClassPropertyRector (#3182)
  • [Php81] Allow normal variable in trait on NullToStrictStringFuncCallArgRector (#3181)

Released Rector 0.15

We released a new getrector.org website, including new documentation - https://getrector.org/documentation 🎉 You can already find a few new sections there.

This release brings the most significant changes in type safety. Few rules in type declaration worked with docblock types and completed type as strict. These rules lead to crashing code with invalid types. Instead, we've been splitting these rules into smaller and specific ones (Unix style!) that handle exact strict type declarations. This release finalizes the removal of these weak rules.

Welcome new type declaration rules that are safe and work with 100 % known strict types ↓

New Features :partying_face:

  • [TypeDeclaration] Add AddParamTypeBasedOnPHPUnitDataProviderRector + remove too narrow KnownArrayParamTypeInferer (#3104)
  • [TypeDeclaration] Add AddParamTypeSplFixedArrayRector (#3105)
  • [TypeDeclaration] Add AddReturnTypeDeclarationFromYieldsRector (#3114)

... (truncated)

Commits
  • bf52972 Rector 0.15.1
  • 2458235 Updated Rector to commit c21cafaf90cab17ae26900679f70461063ab791e
  • 7c46ba0 Updated Rector to commit c21cafaf90cab17ae26900679f70461063ab791e
  • a6cbd60 Updated Rector to commit f20fd6e9daf997a2116f34a305d2c9afa72d393a
  • 12fbd94 Updated Rector to commit 30bc9ac21ab0e2acbd617954ed6358557514e188
  • 04232cb Updated Rector to commit d80ddd193deeebd47e765dfb58d300faaedc25b4
  • d205913 Updated Rector to commit de008767d91ad6cd5ed77bdc259454665e4bbde9
  • 5a40891 Updated Rector to commit de008767d91ad6cd5ed77bdc259454665e4bbde9
  • 7924f69 Updated Rector to commit de008767d91ad6cd5ed77bdc259454665e4bbde9
  • 5c3e98d Updated Rector to commit bea2e12a6d6e7a7b1eb1f7b6f82a0ec1e7c21f2c
  • Additional commits viewable in compare view

Dependabot compatibility score

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 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)

Merge request reports