Skip to content

Commit 2fa2aa0

Browse files
committed
Fix tentative return type
1 parent 3e7aabc commit 2fa2aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Methods/OverridingMethodRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function processNode(Node $node, Scope $scope): array
195195
}
196196
}
197197

198-
if ($reportReturnType) {
198+
if ($reportReturnType && $prototype->isInternal()->yes()) {
199199
$reportReturnType = !$this->hasReturnTypeWillChangeAttribute($node->getOriginalNode());
200200
}
201201
}

0 commit comments

Comments
 (0)