phpstorm-attributes icon indicating copy to clipboard operation
phpstorm-attributes copied to clipboard

Add ImPure annotation?

Open emmadesilva opened this issue 2 years ago • 0 comments

Hey! Since there is a Pure annotation, shouldn't there be an ImPure annotation, or at least a way to set the opposite pure state?

This is supported by PHPStan:

There are two new annotations that can be used above function and method declarations: @phpstan-pure and @phpstan-impure. Additionally, functions and methods that return void are also considered impure. https://phpstan.org/blog/remembering-and-forgetting-returned-values

emmadesilva avatar Dec 27 '23 19:12 emmadesilva