Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 17, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
phpstan/phpstan ^2.1 -> ^2.1.8 age adoption passing confidence
phpstan/phpstan-deprecation-rules ^2.0 -> ^2.0.1 age adoption passing confidence
phpstan/phpstan-doctrine ^2.0 -> ^2.0.2 age adoption passing confidence
phpstan/phpstan-phpunit ^2.0 -> ^2.0.4 age adoption passing confidence
rector/rector (source) ^2.0 -> ^2.0.10 age adoption passing confidence

Release Notes

phpstan/phpstan (phpstan/phpstan)

v2.1.8

Compare Source

Improvements 🔧

  • @readonly property cannot be passed by-ref (#​3850), #​12676, thanks @​staabm!
  • ClassReflection - cannot be a subclass of final-overriden class (phpstan/phpstan-src@ed4ea0a)
  • Deprecated ClassReflection::isSubclassOf(string $className) in favour of ClassReflection::isSubclassOfClass(ClassReflection $class)
    • If you just have string $className instead of ClassReflection and you are too lazy to get ClassReflection via ReflectionProvider, you can still use ClassReflection::is(string $className)

Bugfixes 🐛

Internals 🔍

v2.1.7

Compare Source

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

  • StrlenFunctionReturnTypeExtension: Cleanup instanceof ConstantString (#​3780), thanks @​staabm!
  • Adjust and make space for tests for new behaviour of new (#​3852)

v2.1.6

Compare Source

Improvements 🔧

Bugfixes 🐛

Internals 🔍

v2.1.5

Compare Source

Improvements 🔧

Bugfixes 🐛

v2.1.4

Compare Source

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

v2.1.3

Compare Source

If you're using larastan/larastan PHPStan extension, please update to version 3.0.4 alongside PHPStan 2.1.3 for improved compatibility with the new generic static<...> type. Thank you.

This release includes fixes and improvements from PHPStan 1.12.17. Most impportantly it introduces GenericStaticType - support for static<...> (#​1289), #​12485, #​11398, #​10417, #​9807, #​9449, #​8623, #​5512

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

v2.1.2

Compare Source

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

v2.1.1

Compare Source

Improvements 🔧

Bugfixes 🐛

Internals 🔍

  • Update PHP-Parser and BetterReflection (#​3767)
    • Simplify code thanks to PHP-Parser update
    • Simplify code thanks to BetterReflection update
    • PropertyHookReturnStatementsNode is invoked for short body hooks
    • ShortGetPropertyHookReturnTypeRule is no longer needed
    • PropertyHookNameVisitor is no longer needed, PHP-parser comes with propertyName attribute
phpstan/phpstan-deprecation-rules (phpstan/phpstan-deprecation-rules)

v2.0.1

Compare Source

  • 1cc1259 - Bleeding edge - CallWithDeprecatedIniOptionRule
phpstan/phpstan-doctrine (phpstan/phpstan-doctrine)

v2.0.2

Compare Source

  • a61a04a - EntityRepository.stub fix nullability in findOneBy
  • 815d5ae - Update LICENSE

v2.0.1

Compare Source

  • bdb6a83 - Merge remote-tracking branch 'origin/1.5.x' into 2.0.x
  • 410ed26 - Merge remote-tracking branch 'origin/1.5.x' into 2.0.x
  • f0e0abb - Merge remote-tracking branch 'origin/1.5.x' into 2.0.x
  • 90c4275 - Merge remote-tracking branch 'origin/1.5.x' into 2.0.x
  • 813296e - Merge remote-tracking branch 'origin/1.5.x' into 2.0.x
  • f36d43f - Merge remote-tracking branch 'origin/1.5.x' into 2.0.x
  • e26fd3c - Fix nonexistent BackedEnum in stubs
  • 992a62e - Fix after PHPStan update
  • b129887 - Cleanup skipCheckGenericClasses
  • 8b557de - Readme: index by is supported
  • 4a00482 - Fixes after PHPStan update
  • c551adc - Merge remote-tracking branch 'origin/1.5.x' into 2.0.x
  • bcb88b6 - Fix tests after PHPStan update
  • 14a59bb - Fix stub
  • 4f51333 - Fixes after PHPStan update
  • 261b19d - Fixes after PHPStan update
  • 493457a - Fix CS
  • c585610 - [BCB] Remove options that existed only for performance reasons
  • c17a736 - Fixes after PHPStan updates
  • a110d8a - Fix
  • 674c9d4 - Fixes after PHPStan update
  • d45a640 - Uncover everything behind the bleedingEdge flag
  • d198a78 - Fixes after TypeSpecifier BC break
  • be66017 - Merge remote-tracking branch 'origin/1.5.x' into 2.0.x
  • 039d325 - Remove test about deprecated LOCATE() function in DBAL SQLite platform
  • 0f98bd1 - Do not expect deprecation in test
  • d462eb9 - Fix CS
  • da4e194 - Put doctrine/collections:^1.6 back
  • 22a33bc - Do not run PHPStan on 7.3
  • 9ddc146 - Put doctrine/lexer:^2.0 back
  • 731ac4c - Remove obsolete skips
  • df300b9 - Update build-cs
  • bf12209 - Stop testing PHP 7.2 and 7.3
  • 767698a - Open 2.0.x
phpstan/phpstan-phpunit (phpstan/phpstan-phpunit)

v2.0.4

Compare Source

  • d09e152 - Fix error message for "assertNotEquals" usage referencing "assertSame" and "assertEquals"

v2.0.3

Compare Source

  • e32ac65 - Support assertNotEquals in AssertEqualsIsDiscouragedRule

v2.0.2

Compare Source

  • 2cedfb7 - Merge remote-tracking branch 'origin/1.4.x' into 2.0.x
  • 10880da - Implement AssertEqualsIsDiscouragedRule (#​216)
  • 4b6ad7f - Fix
  • bec49ea - Merge branch '1.4.x' into 2.0.x
  • 3cc8554 - Fixes after PHPStan update
  • 09e2d3b - Uncover everything behind the bleedingEdge flag
  • 4d861e0 - Fix after TypeSpecifier BC break
  • 3faa605 - Update build-cs
  • 953195d - Stop testing PHP 7.2 and 7.3
  • 7f1457f - Open 2.0.x

v2.0.1

Compare Source

  • 4b6ad7f - Fix
  • bec49ea - Merge branch '1.4.x' into 2.0.x
  • 3cc8554 - Fixes after PHPStan update
  • 09e2d3b - Uncover everything behind the bleedingEdge flag
  • 4d861e0 - Fix after TypeSpecifier BC break
  • 3faa605 - Update build-cs
  • 953195d - Stop testing PHP 7.2 and 7.3
  • 7f1457f - Open 2.0.x
rectorphp/rector (rector/rector)

v2.0.10: Released Rector 2.0.10

Compare Source

New Features 🥳


Bugfixes 🐛

  • [PhpParser] Re-add back get value from __DIR__ and __FILE__ on ValueResolver (#​6756)
  • [TypeDeclaration] Skip already typed param on AddClosureParamTypeForArrayReduceRector (#​6737)
  • [TypeDeclaration] Skip already typed param on AddClosureParamTypeForArrayMapRector (#​6738)
  • [Renaming] Handle crash on assign on for loop on RenameFunctionRector (#​6730)
  • [CodeQuality] Skip unused static methods in LocallyCalledStaticMethodToNonStaticRector, as should be handled by another rule (#​6731)
  • [Carbon] Fix refactor time to carbon to use ->getTimestamp() over ->timestamp (#​6733)
  • [TypeDeclaration] Unregister AddClosureParamTypeForArrayMapRector and AddClosureParamTypeForArrayReduceRector due to may read from docblock (#​6727)
  • [TypeDeclaration] Handle crash on union intersection on AddClosureParamTypeForArrayReduceRector (#​6729)
  • [Privatization] Skip magic method on PrivatizeFinalClassMethodRector (#​6734)
  • [Php74] Skip property hook on RestoreDefaultNullToNullableTypePropertyRector (#​6736)
  • [Php53] Handle parentheses in else on TernaryToElvisRector (#​6740)
  • [Php81] Handle crash Class parent was not found on MyCLabsMethodCallToEnumConstRector (#​6741)
  • [CodeQuality] Handle crash division by zero error on ForeachItemsAssignToEmptyArrayToAssignRector (#​6743)
  • fix(ValueObject): FileDiff first line number is below as expected (#​6746), Thanks @​neilime!
  • [naming] Skip variadic params in RenameParamToMatchTypeRector to avoid single naming for multiple types (#​6748)
  • Do not try to refresh attributes (#​6750), Thanks @​lyrixx!
  • [Php74] Skip with @​var doc with more specific type on ClosureToArrowFunctionRector (#​6753)
  • [Php81] Skip property hook on ReadOnlyPropertyRector (#​6758)
  • [code-quality] Skip complex new instance with args assigns in InlineArrayReturnAssignRector (#​6762)
  • [CodeQuality] Handle crash first class callable on InlineArrayReturnAssignRector (#​6763)
  • [dx] Remove 3 rules registered in both code quality and coding style levels, keep them in coding style level only (#​6757)



rectorphp/rector-symfony

  • [Symfony] Add attribute routing with mix other annotation (#​703)
  • [code-quality] Add InlineClassRoutePrefixRector (#​701)
  • Do not change method if name does not need to change (#​700), Thanks @​carlos-granados
  • [code-quality] Add attribute support (#​702)
  • [SYMFONY 5 & 6] Security add missing param (#​699), Thanks @​JohJohan



rectorphp/rector-doctrine

  • [code-quality] Add GetRepositoryServiceLocatorToRepositoryServiceInjectionRector (#​368)
  • [NodeAnalyzer] Ensure mix annotation and attribute lookup finder on AttrinationFinder::findManyBy* (#​367)
  • Add AttrinationFinder::findManyBy() (#​366)
  • Orm querybuilder set parameters to collection (#​326), Thanks @​marcelthole



rectorphp/rector-phpunit

  • add custom message support to AssertEmptyNullableObjectToAssertInstanceofRector (#​461)
  • [Attribute] Add CoversTrait support on CoversAnnotationWithValueToAttributeRector (#​460)
  • [CodeQuality] Skip union type on AssertCountWithZeroToAssertEmptyRector (#​459)

v2.0.9: Released Rector 2.0.9

Compare Source

Bugfixes 🐛

  • [Php81] Exclude Doctrine ODM MongoDB Document and EmbeddedDocument from ReadOnlyPropertyRector (#​6721), Thanks @​mickverm!
  • [PostRector] Handle with FQCN docblock on UnusedImportRemovingPostRector (#​6722)
  • Type hint array reduce closure (#​6725), Thanks @​peterfox!
  • [PHPStan 2.1.3] Add ReflectionAttribute and ReflectionIntersectionType stub for PHPStan 2.1.3 (#​6723)

v2.0.8: Released Rector 2.0.8

Compare Source

New Features 🥳


Bugfixes 🐛

  • [CodeQuality] Skip with comment inside on SimplifyIfElseToTernaryRector (#​6683)
  • [CodeQuality] Skip windows absolute path on AbsolutizeRequireAndIncludePathRector (#​6684)
  • [Strict] Handle in assign on BooleanInIfConditionRuleFixerRector (#​6685)
  • Replace ambiguous wrapped_with_brackets with existing attribute wrapped_in_parentheses (#​6691)
  • [NodeTypeResolver] Clean up wrap in parentheses check ReprintNodeVisitor (#​6692)
  • [Php80][TypeDeclaration] Fix crash on ClassPropertyAssignToConstructorPromotionRector + ReturnNeverTypeRector (#​6694)
  • CodeClimate output format (#​6697), Thanks @​VitalyArt!
  • Exclude node modules path (#​6702), Thanks @​vaishnavyogesh!
  • Fix str_getcsv() escape argument on PHP 8.4 (#​6704)
  • [Php74] Handle crash curly based array on trait on CurlyToSquareBracketArrayStringRector (#​6706)
  • [Php73] Handle infinite cast on StringifyStrNeedlesRector (#​6707)
  • Clean up unused use (#​6708)
  • fix: NewlineBeforeNewAssignSetRector variable as same name like property (#​6705), Thanks @​guideloince!
  • [TypeDeclaration] Skip override trait method on StrictStringParamConcatRector (#​6711)
  • [Test] Clean up test on WorkerCommandLineFactoryTest (#​6714)
  • [DX] Move isWindows() method from AbstractRectorTestCase to AbstractLazyTestCase (#​6715)
  • [Performance] Use exactly equal or append / file path check on RealpathMatcher (#​6716)
  • [TypeDeclaration] Allow union with closure type on property on TypedPropertyFromAssignsRector (#​6717)
  • [DeadCode] Skip union falsy mixed on trait on RecastingRemovalRector (#​6718)
  • Skip hexa chars in EncapsedStringsToSprintfRector (#​6719)
  • [CodingStyle] Rename method: containsASCIIChar to containsControlASCIIChar on EncapsedStringsToSprintfRector (#​6720)

v2.0.7: Released Rector 2.0.7

Compare Source

New Features 🥳


Bugfixes 🐛

  • [type-declaration] Add typed property, if traits do not duplicate the property (#​6663)
  • [removing] Add interface support to RemoveInterfaceRector (#​6681)
  • fix: add Symfony support as a composer-based option (#​6673), Thanks @​ayedbelsem!
  • [CodeQuality] Handle on assign on FlipTypeControlToUseExclusiveTypeRector (#​6653)
  • [Performance] Early return FullyQualifiedObjectType on FQCN on ObjectTypeSpecifier (#​6658)
  • [CodeQuality] Skip indirect return on SimplifyIfReturnBoolRector (#​6660)
  • [Php83] Handle concat in first argument on CombineHostPortLdapUriRector (#​6661)
  • [TypeDeclaration] Skip unset by trait on TypedPropertyFromStrictConstructorRector (#​6664)
  • [Renaming] Skip used by trait as property promotion on RenamePropertyToMatchTypeRector (#​6665)
  • [TypeDeclaration] Skip changed by ref from trait on TypedPropertyFromStrictConstructorRector (#​6666)
  • [CodeQuality] Handle with assign missing parentheses on ExplicitBoolCompareRector (#​6668)
  • use ->ignoreVCSIgnored() on RectorConfigBuilder::withRootFiles() over custom logic (#​6669)
  • [BetterPhpDocParser] Check for closing brace in text content (#​8977) (#​6670), Thanks @​andrewnicols!
  • [AutoImport] Handle FQCN with sub namespace (#​6672)
  • [BetterPhpDocParser] Use str_contains() for DoctrineAnnotationDecorator (#​6671) (#​6674), Thanks @​andrewnicols!
  • [AutoImport] Handle inner with sub namespace on auto import (#​6679)
  • [DeadCode] Skip dynamic name on RemoveParentCallWithoutParentRector (#​6659)



rectorphp/rector-symfony 🎵

  • Back to require-dev rector-src:dev-main (#​697)
  • Update GetBySymfonyStringToConstructorInjectionRector fixture test to cover rector-srv:tv-readonly-add-ctor (#​696)

rectorphp/rector-doctrine 🟠


rectorphp/rector-phpunit 🟢

  • [PHPUnit 10] Register PropertyExistsWithoutAssertRector to phpunit100.php (#​443)
  • Added testcase to demonstrate rector#8977 (#​440), Thanks @​andrewnicols
  • [PHPUnit10] Replace deleted PHPUnit methods (#​438), Thanks @​66Ton99

v2.0.6: Released: Rector 2.0.6

Compare Source

New Features 🥳

  • [dx] Add --only-suffix to filter files by suffixes (#​6647)
  • [DeadCode] Add ReplaceBlockToItsStmtsRector (#​6641)
  • [DeadCode] Add RemoveUselessAssignFromPropertyPromotionRector (#​6643)
  • Add readonly by default on new promoted property (#​6650)
  • Use autowired method if exists in adding new dependency (#​6652)

Bugfixes 🐛

  • [CodeQuality] Handle crash inside block statement with unreachable statement on OptionalParametersAfterRequiredRector (#​6640)
  • [DX] Use Param->isPromoted() over param->flags !== 0 check on promotion property check (#​6646)
  • [Php80] Keep numeric string, string "true", "false" as is on StringAnnotationToAttributeMapper (#​6610)
  • [PHPStan ^2.1.1] Handle next unreachable statement via UnreachableStatementNode->getNextUnreachableStatements() (#​6642)

Removed 💀

  • [Parser] Remove SmartPhpParserFactory and SmartPhpParser (#​6651)

v2.0.5: Released: Rector 2.0.5

Compare Source

This release support PHP-Parser 5.4.0 and PHPStan 2.1.0

Feature

  • Bump to PHP-Parser ^5.4.0 with use patches fix-patch-php-parser-54 patches (#​6637)
  • Bump to PHPStan ^2.1.0 (#​6639)
  • [DeadCode] Allow remove useless @​ var on typed class constant as well on RemoveUselessVarTagRector (#​6633)

Removed 💀

  • Remove unused AssignVariableNameResolverInterface instances (#​6631)

Bugfixes 🐛

  • [DX] Warn about ->withPhpSets() called multiple times, to avoid invalid set mix (#​6632)
  • [CodeQuality] Skip fopen() or die() on LogicalToBooleanRector on assign (#​6635)
  • use vendor-patches main branch that already include php-parser 5.4.0 patch (#​6638)

v2.0.4: Released Rector 2.0.4

Compare Source

New Features 🥳

  • [PHP 8.0] Add lcfirst annotation to attribute support (#​6577)
  • Add multiline comment fixture ([#​6580](ht

Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) March 17, 2025 03:45
@coveralls
Copy link

Coverage Status

coverage: 95.989%. remained the same
when pulling 14aa126 on renovate/composer-qa-tooling
into 2cc17cf on main.

@martin-georgiev martin-georgiev merged commit 37be684 into main Mar 17, 2025
17 of 19 checks passed
@martin-georgiev martin-georgiev deleted the renovate/composer-qa-tooling branch March 17, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants