Skip to content

Commit

Permalink
Try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Apr 29, 2024
1 parent c0a9d04 commit f1ac418
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Psalm/Internal/Type/TemplateInferredTypeReplacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,10 @@ private static function replaceConditional(
null,
false,
false,
)) {
)
&& ($candidate_atomic_type->getKey() !== 'string'
|| $conditional_type->getKey() !== 'string')
) {
$matching_else_types[] = $candidate_atomic_type;
}
}
Expand Down

0 comments on commit f1ac418

Please sign in to comment.