docs: deprecated attribute support and compatibility matrix#185
docs: deprecated attribute support and compatibility matrix#185vinceAmstoutz wants to merge 1 commit intophpstan:2.0.xfrom
Conversation
Cover PHP 8.4 native #[\Deprecated] attribute detection (via the extension, not PHPStan core) and add a compatibility table summarising which mechanisms emit a runtime deprecation and which are caught by PHPStan.
|
@ondrejmirtes I tested in a project and the |
|
My first impression here is that this addition to the README is completely unnecessary. The Deprecated attribute isn't really usable, it's only allowed above functions, methods and only most recently above traits. |
|
The current README only mentions When I presented this extension at a talk, a Symfony core team member directly asked me whether WDYT? |
|
ping @mtarld |
|
Fair, but I'd reword it. I don't entirely agree with the framing. the fact that
That's kind of half-true. PHPStan itself reads this attribute and propagates it into various |
Cover PHP 8.4 native
#[\Deprecated]attribute detection (via the phpstan/phpstan-deprecation-rules extension, not PHPStan core) and add a compatibility table summarising which mechanisms emit a runtime deprecation and which are caught by PHPStan.