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

chore(deps): update phpstan packages to v2 (major) #1635

Merged
merged 13 commits into from
Mar 11, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 11, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
phpstan/phpstan 1.12.12 -> 2.1.8 age adoption passing confidence
phpstan/phpstan-phpunit 1.4.1 -> 2.0.4 age adoption passing confidence
phpstan/phpstan-strict-rules 1.6.1 -> 2.0.3 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

v2.1.0

Compare Source

Read all about this release on PHPStan's blog!

Major new features 🚀

  • Support for PHP 8.4's property hooks (RFC)
  • Support for PHP 8.4's asymmetric visibility (RFC)
  • Support for PHP 8.4's #[Deprecated] attribute (RFC)

Bleeding edge 🔪

If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:

includes:
	- vendor/phpstan/phpstan/conf/bleedingEdge.neon

Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more

Improvements 🔧

Bugfixes 🐛

Internals 🔍

v2.0.4

Compare Source

This release includes improvements and fixes from PHPStan 1.12.13.

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

v2.0.3

Compare Source

This release includes improvements and fixes from PHPStan 1.12.12.

Bleeding edge 🔪

If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:

includes:
	- vendor/phpstan/phpstan/conf/bleedingEdge.neon

Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

v2.0.2

Compare Source

Improvements 🔧

Internals 🔍

v2.0.1

Compare Source

Bugfixes 🐛

v2.0.0

Compare Source

PHPStan 2.0

Read more about PHPStan 2.0.

Check out the UPGRADING guide!.

Buy the PHPStan elephpant and T-shirts!

Design 2

Major new features 🚀

Improvements 🔧


Configuration

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

🚦 Automerge: Disabled because a matching PR was automerged previously.

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 force-pushed the renovate/major-phpstan branch 6 times, most recently from fd2c4f5 to 4a275c0 Compare November 17, 2024 16:39
@renovate renovate bot force-pushed the renovate/major-phpstan branch 2 times, most recently from 433b1cf to af6011a Compare November 29, 2024 01:14
@renovate renovate bot force-pushed the renovate/major-phpstan branch 2 times, most recently from 9c5ba87 to 45fb9e5 Compare December 19, 2024 10:51
@renovate renovate bot force-pushed the renovate/major-phpstan branch 2 times, most recently from a4ca9f9 to 58b31ae Compare January 5, 2025 19:19
@renovate renovate bot force-pushed the renovate/major-phpstan branch 4 times, most recently from 1821f8f to bf33025 Compare January 22, 2025 18:16
@renovate renovate bot force-pushed the renovate/major-phpstan branch 3 times, most recently from 6cbb867 to 0d348f2 Compare February 13, 2025 16:14
@renovate renovate bot force-pushed the renovate/major-phpstan branch from 0d348f2 to f8637a9 Compare February 19, 2025 15:59
@renovate renovate bot force-pushed the renovate/major-phpstan branch from f8637a9 to de98ecc Compare March 5, 2025 14:52
@renovate renovate bot force-pushed the renovate/major-phpstan branch from de98ecc to cdf2440 Compare March 9, 2025 09:58
Copy link
Contributor Author

renovate bot commented Mar 10, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@spawnia
Copy link
Collaborator

spawnia commented Mar 10, 2025

Thank you @simPod for moving this along. Looks good so far!

@simPod simPod force-pushed the renovate/major-phpstan branch from 1701edf to c74173f Compare March 10, 2025 16:33
Copy link
Collaborator

@simPod simPod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm green

@simPod simPod force-pushed the renovate/major-phpstan branch from 5aadce0 to 73cab33 Compare March 11, 2025 08:53
@simPod simPod force-pushed the renovate/major-phpstan branch from 7b4a2a9 to c515359 Compare March 11, 2025 09:22
@simPod simPod requested a review from spawnia March 11, 2025 09:23
Copy link
Collaborator

@spawnia spawnia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done, thanks for putting in the work!

@spawnia spawnia merged commit 7d1da83 into master Mar 11, 2025
20 checks passed
@spawnia spawnia deleted the renovate/major-phpstan branch March 11, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants