11
0
Fork 0
mirror of https://github.com/n3w/helpers-cli-input.git synced 2025-12-19 12:43:23 +00:00

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.

This commit is contained in:
Alannah Kearney 2019-05-24 18:04:00 +10:00
commit 96bf279a70

View file

@ -85,7 +85,7 @@ abstract class AbstractInputHandler implements Interfaces\InputHandlerInterface
}
}
throw new Exceptions\InputNotFoundException($name);
return null;
}
public function getInput(): array