DEV: replace deprecated InvalidParamException with InvalidArgumentExc… (#235)
This commit is contained in:
committed by
Lorenzo Milesi
parent
e9bca86828
commit
75b9cd87d5
@ -14,6 +14,7 @@
|
|||||||
- Fix #168: Fix spelling in russian language (EvgenyOrekhov)
|
- Fix #168: Fix spelling in russian language (EvgenyOrekhov)
|
||||||
- Fix #195: UserCreateService: check if we're from web before setting flash message (maxxer)
|
- Fix #195: UserCreateService: check if we're from web before setting flash message (maxxer)
|
||||||
- Enh: Improvements to the admin responsive design (wautvda)
|
- Enh: Improvements to the admin responsive design (wautvda)
|
||||||
|
- Enh: Replace the deprecated InvalidParamException in ClassMapHelper (TonisOrmisson)
|
||||||
|
|
||||||
## 1.1.4 - February 19, 2018
|
## 1.1.4 - February 19, 2018
|
||||||
- Enh: Check enableEmailConfirmation on registration (faenir)
|
- Enh: Check enableEmailConfirmation on registration (faenir)
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Da\User\Helper;
|
namespace Da\User\Helper;
|
||||||
|
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidArgumentException;
|
||||||
|
|
||||||
class ClassMapHelper
|
class ClassMapHelper
|
||||||
{
|
{
|
||||||
@ -39,7 +39,7 @@ class ClassMapHelper
|
|||||||
/**
|
/**
|
||||||
* @param $key
|
* @param $key
|
||||||
*
|
*
|
||||||
* @throws InvalidParamException
|
* @throws \InvalidArgumentException
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -48,6 +48,6 @@ class ClassMapHelper
|
|||||||
if (array_key_exists($key, $this->map)) {
|
if (array_key_exists($key, $this->map)) {
|
||||||
return $this->map[$key];
|
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