From 96bf279a700381887c50ca61edeb29a1acfef6a0 Mon Sep 17 00:00:00 2001 From: Alannah Kearney Date: Fri, 24 May 2019 18:04:00 +1000 Subject: [PATCH] AbstractInputHandler::find() returns NULL if it cannot find any input with the supplied name. It is easier to test for NULL than it is to catch an exception. --- src/Input/AbstractInputHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input/AbstractInputHandler.php b/src/Input/AbstractInputHandler.php index 89d4c00..4861a68 100644 --- a/src/Input/AbstractInputHandler.php +++ b/src/Input/AbstractInputHandler.php @@ -85,7 +85,7 @@ abstract class AbstractInputHandler implements Interfaces\InputHandlerInterface } } - throw new Exceptions\InputNotFoundException($name); + return null; } public function getInput(): array