Skip to content

Commit

Permalink
Within the reconciler's fast path, do not require the existing type t…
Browse files Browse the repository at this point in the history
…o include mixed when handling an `Any` assertion.
  • Loading branch information
pvandommelen committed Sep 18, 2022
1 parent 05f28ce commit 2eb4ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Type/SimpleAssertionReconciler.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static function reconcile(
int &$failed_reconciliation = Reconciler::RECONCILIATION_OK,
bool $inside_loop = false
): ?Union {
if ($assertion instanceof Any && $existing_var_type->hasMixed()) {
if ($assertion instanceof Any) {
return $existing_var_type;
}

Expand Down

0 comments on commit 2eb4ca0

Please sign in to comment.