Skip to content

Commit

Permalink
Merge pull request #10764 from weirdan/fix-since-version-comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Mar 1, 2024
2 parents 8bdf114 + 97b22ec commit 496b214
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public function start(PhpParser\Node\FunctionLike $stmt, bool $fake_method = fal
if ($docblock_info) {
if ($docblock_info->since_php_major_version && !$this->aliases->namespace) {
$analysis_major_php_version = $this->codebase->getMajorAnalysisPhpVersion();
$analysis_minor_php_version = $this->codebase->getMajorAnalysisPhpVersion();
$analysis_minor_php_version = $this->codebase->getMinorAnalysisPhpVersion();
if ($docblock_info->since_php_major_version > $analysis_major_php_version) {
return false;
}
Expand Down Expand Up @@ -1047,7 +1047,7 @@ private function createStorageForFunctionLike(
if ($docblock_info) {
if ($docblock_info->since_php_major_version && !$this->aliases->namespace) {
$analysis_major_php_version = $this->codebase->getMajorAnalysisPhpVersion();
$analysis_minor_php_version = $this->codebase->getMajorAnalysisPhpVersion();
$analysis_minor_php_version = $this->codebase->getMinorAnalysisPhpVersion();
if ($docblock_info->since_php_major_version > $analysis_major_php_version) {
return false;
}
Expand Down

0 comments on commit 496b214

Please sign in to comment.