Skip to content

Commit

Permalink
fix Atomic creation
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Jun 22, 2023
1 parent 1c6ba90 commit 5c23496
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psalm/Internal/Type/AssertionReconciler.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@

use function array_intersect_key;
use function array_merge;
use function assert;
use function count;
use function get_class;
use function is_string;
Expand Down Expand Up @@ -776,6 +777,7 @@ private static function filterAtomicWithAnother(
}
unset($type_1_param);

assert($type_1_atomic->fallback_params !== null);
$matching_atomic_type = new TKeyedArray(
$type_1_properties,
$type_1_atomic->class_strings,
Expand Down

0 comments on commit 5c23496

Please sign in to comment.