From f18616b2f94f42c1206af0ee8f4ea61bd445c600 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Sun, 19 Nov 2017 14:23:39 -0500 Subject: [PATCH] Provide fallback if array keys not found --- src/Psalm/Checker/Statements/Expression/FetchChecker.php | 2 ++ 1 file changed, 2 insertions(+) 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,