diff --git a/src/Psalm/Checker/Statements/Expression/FetchChecker.php b/src/Psalm/Checker/Statements/Expression/FetchChecker.php index 6cbbec155..bbcdf30d8 100644 --- a/src/Psalm/Checker/Statements/Expression/FetchChecker.php +++ b/src/Psalm/Checker/Statements/Expression/FetchChecker.php @@ -946,6 +946,8 @@ class FetchChecker } $invalid_offset_types[] = $expected_keys_string; + + $array_access_type = Type::getMixed(); } } elseif (TypeChecker::isContainedBy( $project_checker,