Skip to content

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Mar 3, 2025

@staabm staabm marked this pull request as ready for review March 3, 2025 13:55
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@staabm staabm changed the title @immutable class cannot be passed by-ref @readonly property cannot be passed by-ref Mar 4, 2025
@ondrejmirtes
Copy link
Member

This is fine because it's going to be very rare and arguably it's an ommission in a feature added in the past, but for future additions we need to start adding them only to bleeding edge again :)

@ondrejmirtes ondrejmirtes merged commit 9f34449 into phpstan:2.1.x Mar 7, 2025
412 of 417 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the bug12676 branch March 7, 2025 08:45
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.

Immutable class by phpdoc can be modified by e.g. sort

3 participants