Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Jun 22, 2023
1 parent d1b36ba commit ef7ced0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psalm/Internal/Type/AssertionReconciler.php
Expand Up @@ -771,7 +771,9 @@ private static function filterAtomicWithAnother(
}

if ($type_1_param->getId() !== $type_2_param->getId()) {
$type_1_possibly_undefined = $type_1_param->possibly_undefined;
$type_1_param = $type_2_param;
$type_1_param->possibly_undefined = $type_1_possibly_undefined;

Check failure on line 776 in src/Psalm/Internal/Type/AssertionReconciler.php

View workflow job for this annotation

GitHub Actions / build

InaccessibleProperty

src/Psalm/Internal/Type/AssertionReconciler.php:776:21: InaccessibleProperty: Psalm\Type\Union::$possibly_undefined is marked readonly (see https://psalm.dev/054)
}
}
unset($type_1_param);
Expand Down

0 comments on commit ef7ced0

Please sign in to comment.