We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee375e commit e13a2acCopy full SHA for e13a2ac
1 file changed
src/Rules/PhpDoc/InvalidThrowsPhpDocValueRule.php
@@ -90,6 +90,9 @@ private function isThrowsValid(Type $phpDocThrowsType): bool
90
91
$toIntersectWith = [];
92
foreach ($phpDocThrowsType->getObjectClassReflections() as $classReflection) {
93
+ if (!$classReflection->isInterface()) {
94
+ continue;
95
+ }
96
foreach ($classReflection->getRequireExtendsTags() as $requireExtendsTag) {
97
$toIntersectWith[] = $requireExtendsTag->getType();
98
}
0 commit comments