-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
phpstan/phpstan-src
#225Description
Bug report
Imagine we have two classes AbstractEvent and SpecificEvent extends AbstractEvent. AbstractEvent has getString method, SpecificEvent uses it. One day we decide this method shoud be placed in SpecificEvent but not in AbstractEvent and we create one more getString method in SpecificEvent and make AbstractEvent::getString deprecated. So we have the child class with the method and the parent class with the same deprecated method.
Code snippet that reproduces the problem
https://phpstan.org/r/4ff86893-71fd-46a6-8f53-ddef9a049d0d
Expected output
I think SpecificEvent::getString should not be deprecated.
Metadata
Metadata
Assignees
Labels
No labels