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

@ -14,6 +14,7 @@
- Fix #168: Fix spelling in russian language (EvgenyOrekhov)
- Fix #195: UserCreateService: check if we're from web before setting flash message (maxxer)
- Enh: Improvements to the admin responsive design (wautvda)
- Enh: Replace the deprecated InvalidParamException in ClassMapHelper (TonisOrmisson)
## 1.1.4 - February 19, 2018
- Enh: Check enableEmailConfirmation on registration (faenir)

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