Skip to content

Conversation

VincentLanglet
Copy link
Contributor

Copy link
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.

What about CallToConstructorStatementWithoutSideEffectsRule?

@VincentLanglet
Copy link
Contributor Author

What about CallToConstructorStatementWithoutSideEffectsRule?

The issue only appear if you use both @phpstan-pure and @phpstan-assert.
I dunno if it make sens to have a pure constructor.

Anyway it doesn't really cost to add the check, so I updated the PR.

@ondrejmirtes ondrejmirtes merged commit 5c3eed5 into phpstan:2.1.x Sep 12, 2025
450 of 456 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

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.

@phpstan-assert not considered a side effect

2 participants