Skip to content

Commit

Permalink
Actually run some checks on all PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jan 27, 2022
1 parent 60b7086 commit 6c41fdb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Psalm/Internal/Analyzer/MethodComparator.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,18 @@ public static function compare(

if (!$guide_classlike_storage->user_defined
&& $implementer_classlike_storage->user_defined
&& $codebase->analysis_php_version_id >= 80100
&& ($guide_method_storage->return_type
|| $guide_method_storage->signature_return_type
)
&& !$implementer_method_storage->signature_return_type
&& !array_filter(
$implementer_method_storage->attributes,
function (AttributeStorage $s) {
return $s->fq_class_name === 'ReturnTypeWillChange';
}
&& (
$codebase->analysis_php_version_id >= 80000
|| !array_filter(
$implementer_method_storage->attributes,
function (AttributeStorage $s) {
return $s->fq_class_name === 'ReturnTypeWillChange';
}
)
)
) {
IssueBuffer::maybeAdd(
Expand Down

0 comments on commit 6c41fdb

Please sign in to comment.