Skip to content

Commit 210c0b3

Browse files
Silent error
1 parent e80620c commit 210c0b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Rules/PhpDoc/VarTagTypeRuleHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private function isSuperTypeOfVarType(Scope $scope, Type $type, Type $varTagType
207207
try {
208208
$type = $this->typeNodeResolver->resolve($type->toPhpDocNode(), $this->createNameScope($scope));
209209
} catch (NameScopeAlreadyBeingCreatedException) {
210-
return false;
210+
return true;
211211
}
212212

213213
return $type->isSuperTypeOf($varTagType)->yes();
@@ -222,7 +222,7 @@ private function isAtLeastMaybeSuperTypeOfVarType(Scope $scope, Type $type, Type
222222
try {
223223
$type = $this->typeNodeResolver->resolve($type->toPhpDocNode(), $this->createNameScope($scope));
224224
} catch (NameScopeAlreadyBeingCreatedException) {
225-
return false;
225+
return true;
226226
}
227227

228228
return !$type->isSuperTypeOf($varTagType)->no();

0 commit comments

Comments
 (0)