From 25f3fb8014acfb092540fc3f1bad3a6d840ccd17 Mon Sep 17 00:00:00 2001 From: Alannah Kearney Date: Thu, 23 May 2019 23:44:24 +1000 Subject: [PATCH] Fixed InputCollection::getArgumentsByIndex() so it returns NULL if the index does not exist instead of throwing an E_NOTICE message --- src/Input/InputCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input/InputCollection.php b/src/Input/InputCollection.php index 525ab44..ddf99ba 100644 --- a/src/Input/InputCollection.php +++ b/src/Input/InputCollection.php @@ -77,7 +77,7 @@ class InputCollection public function getArgumentsByIndex(int $index): ?AbstractInputType { - return $this->arguments[$index]; + return $this->arguments[$index] ?? null; } public function getArguments(): array