Skip to content

Commit 3fb2a1c

Browse files
committed
Fix non-version dependent deprecations
1 parent f1ccd80 commit 3fb2a1c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/SourceLocator/SourceStubber/PhpStormStubsSourceStubber.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -692,12 +692,10 @@ private function isDeprecatedByPhpDocInPhpVersion(Node\Expr\FuncCall $node): boo
692692
$patch = $matches[3] ?? 0;
693693
$versionId = sprintf('%d%02d%02d', $major, $minor, $patch);
694694

695-
if ($this->phpVersion >= $versionId) {
696-
return true;
697-
}
695+
return $this->phpVersion >= $versionId;
698696
}
699697

700-
return false;
698+
return true;
701699
}
702700

703701
private function isDeprecatedInPhpVersion(Node\Stmt\ClassLike|Node\Stmt\ClassConst|Node\Stmt\Property|Node\Stmt\ClassMethod|Node\Stmt\Function_ $node): bool

0 commit comments

Comments
 (0)