Skip to content

Commit

Permalink
Improve compatibility with PHPStan 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 23, 2021
1 parent 234cb55 commit 5d50142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/PHPUnit/ShouldCallParentMethodsRule.php
Expand Up @@ -35,7 +35,7 @@ public function processNode(Node $node, Scope $scope): array

$parentClass = $scope->getClassReflection()->getParentClass();

if ($parentClass === false) {
if ($parentClass === null) {
return [];
}
if (!$parentClass->hasNativeMethod($methodName)) {
Expand Down

0 comments on commit 5d50142

Please sign in to comment.