From 3d54208ab0a57a70227956bb5a7e9d14a5860636 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Tue, 14 May 2019 14:30:01 -0400 Subject: [PATCH] Use array-key for expected iterable type --- hooks/TestCaseHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/TestCaseHandler.php b/hooks/TestCaseHandler.php index 7751611..c5b73f1 100644 --- a/hooks/TestCaseHandler.php +++ b/hooks/TestCaseHandler.php @@ -192,7 +192,7 @@ class TestCaseHandler implements assert(null !== $provider_return_type_location); $expected_provider_return_type = new Type\Atomic\TIterable([ - Type::combineUnionTypes(Type::getInt(), Type::getString()), + Type::combineUnionTypes(Type::getArrayKey()), Type::getArray(), ]);