Skip to content

Add handling an attempt to declare a hooked property static#3810

Merged
ondrejmirtes merged 3 commits intophpstan:2.1.xfrom
jakubtobiasz:static-properties-cannot-be-hooked
Feb 11, 2025
Merged

Add handling an attempt to declare a hooked property static#3810
ondrejmirtes merged 3 commits intophpstan:2.1.xfrom
jakubtobiasz:static-properties-cannot-be-hooked

Conversation

@jakubtobiasz
Copy link
Copy Markdown
Contributor

Fulfills Static properties cannot be hooked (ref: phpstan/phpstan#12336)

Copy link
Copy Markdown
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

PropertiesInInterfaceRule should cover this too.

@jakubtobiasz
Copy link
Copy Markdown
Contributor Author

Done :)

@ondrejmirtes ondrejmirtes merged commit b4f41c7 into phpstan:2.1.x Feb 11, 2025
41 checks passed
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you.

@jakubtobiasz jakubtobiasz deleted the static-properties-cannot-be-hooked branch February 11, 2025 16:23
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.

2 participants