You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at other trait related issues, it does sound like the might be some challenges in implementing this, is there anything in particular that would prevent this from working?
Did PHPStan help you today? Did it make you happy in any way?
I love PHPStan, it has brought much needed and ever improving strong static analysis I miss from other languages and has kept my code sane!
The text was updated successfully, but these errors were encountered:
evolbug
changed the title
Support trait abstract method docstring validation
Support trait abstract method docstring inheritance and validation
Apr 21, 2024
Feature request
Hi! Since PHP 8.0, declared abstract trait method signatures are statically enforced at definition time, they are no longer just suggestions, similar to inheriting from an abstract class, so it would make sense if docstrings would also be passed down.
This would avoid the need of copy-pasting docsctrings and having to keep them in sync. There is a previous issue opened by @Firehed in reference to this.
Looking at other trait related issues, it does sound like the might be some challenges in implementing this, is there anything in particular that would prevent this from working?
Did PHPStan help you today? Did it make you happy in any way?
I love PHPStan, it has brought much needed and ever improving strong static analysis I miss from other languages and has kept my code sane!
The text was updated successfully, but these errors were encountered: