DEV: replace deprecated InvalidParamException with InvalidArgumentExc… (#235)
This commit is contained in:
committed by
Lorenzo Milesi
parent
e9bca86828
commit
75b9cd87d5
@ -11,7 +11,7 @@
|
||||
|
||||
namespace Da\User\Helper;
|
||||
|
||||
use yii\base\InvalidParamException;
|
||||
use yii\base\InvalidArgumentException;
|
||||
|
||||
class ClassMapHelper
|
||||
{
|
||||
@ -39,7 +39,7 @@ class ClassMapHelper
|
||||
/**
|
||||
* @param $key
|
||||
*
|
||||
* @throws InvalidParamException
|
||||
* @throws \InvalidArgumentException
|
||||
* @return mixed
|
||||
*
|
||||
*/
|
||||
@ -48,6 +48,6 @@ class ClassMapHelper
|
||||
if (array_key_exists($key, $this->map)) {
|
||||
return $this->map[$key];
|
||||
}
|
||||
throw new InvalidParamException('Unknown model map key: ' . $key);
|
||||
throw new InvalidArgumentException('Unknown model map key: ' . $key);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user