Skip to content

Commit

Permalink
Fix new errors
Browse files Browse the repository at this point in the history
  • Loading branch information
edsrzf committed Feb 26, 2024
1 parent 10ed0f3 commit 3535324
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

use function array_diff_key;
use function array_filter;
use function array_keys;
use function array_key_first;
use function array_merge;
use function array_values;
use function count;
Expand Down Expand Up @@ -80,7 +80,7 @@ public static function analyze(
$entry_clauses,
static fn(Clause $c): bool => count($c->possibilities) > 1
|| $c->wedge
|| !isset($changed_var_ids[array_keys($c->possibilities)[0]])
|| !isset($changed_var_ids[array_key_first($c->possibilities)])
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Type/SimpleAssertionReconciler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2982,7 +2982,7 @@ private static function reconcileValueOf(
continue;
}

$enum_case = $class_storage->enum_cases[$atomic_type->const_name] ?? null;
$enum_case = $class_storage->enum_cases[$enum_case_to_assert] ?? null;
if ($enum_case === null) {
return null;
}
Expand Down

0 comments on commit 3535324

Please sign in to comment.