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:
parent
a4a8d5e351
commit
96bf279a70
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ abstract class AbstractInputHandler implements Interfaces\InputHandlerInterface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Exceptions\InputNotFoundException($name);
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getInput(): array
|
public function getInput(): array
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue