DEV: replace deprecated InvalidParamException with InvalidArgumentExc… (#235)

This commit is contained in:
Tõnis Ormisson
2018-09-12 09:13:31 +03:00
committed by Lorenzo Milesi
parent e9bca86828
commit 75b9cd87d5
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}
}