Skip to content
Permalink
Browse files

Return mixed in special case

  • Loading branch information...
muglug committed Aug 11, 2019
1 parent fac7df2 commit 63974212157f1bd81ff5e2079c4cd078c5b11ca6
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/Psalm/Internal/Type/AssertionReconciler.php
@@ -1431,10 +1431,7 @@ private static function reconcileIntArrayAccess(
$existing_var_atomic_types = $existing_var_type->getTypes();
if ($existing_var_type->hasMixed()) {
return new Union([
new Atomic\TNonEmptyArray([Type::getArrayKey(), Type::getMixed()]),
new TNamedObject('ArrayAccess'),
]);
return Type::getMixed();
}
$array_types = [];

0 comments on commit 6397421

Please sign in to comment.
You can’t perform that action at this time.