mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
parent
71707e6c4e
commit
97b22ecdfd
@ -463,7 +463,7 @@ final class FunctionLikeNodeScanner
|
||||
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;
|
||||
}
|
||||
@ -1047,7 +1047,7 @@ final class FunctionLikeNodeScanner
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user