-
-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
Labels
Description
class Foo {
/** @return void */
public function a() {}
/** @return void */
public function b() {}
}
class Bar extends Foo {
/** Some comment */
public function a() {}
public function b() {}
}https://phpstan.org/r/7058069c-167f-4cf4-9f27-f6b2e865dd7d
Method Bar::a() has no return typehint specified.
Psalm inherits the phpDoc types even if no @inheritdoc is specified. Every IDE does this. I think PHPStan should do the same. What do you think?
Reactions are currently unavailable