forked from mirrors/easyappointments
Changed the exception instance to InvalidArgument exception.
This commit is contained in:
parent
1492963dee
commit
85a6be1d7d
1 changed files with 4 additions and 2 deletions
|
@ -26,6 +26,8 @@
|
|||
* @param mixed $default Default value in case the requested config has no value.
|
||||
*
|
||||
* @return mixed|NULL Returns the configuration value or NULL if setting the configuration key.
|
||||
*
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
function config($key, $default = NULL)
|
||||
{
|
||||
|
@ -34,7 +36,7 @@ function config($key, $default = NULL)
|
|||
|
||||
if (is_null($key))
|
||||
{
|
||||
throw new Exception('The key argument cannot be empty.');
|
||||
throw new InvalidArgumentException('The key argument cannot be empty.');
|
||||
}
|
||||
|
||||
if (is_array($key))
|
||||
|
|
Loading…
Reference in a new issue