mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixed code break.
This commit is contained in:
@ -194,6 +194,8 @@ class User extends Component
|
||||
if ($identity instanceof IdentityInterface) {
|
||||
$this->_identity = $identity;
|
||||
$this->_access = [];
|
||||
} elseif ($identity === null) {
|
||||
$this->_identity = null;
|
||||
} else {
|
||||
throw new InvalidValueException('The identity object must implement IdentityInterface.');
|
||||
}
|
||||
|
Reference in New Issue
Block a user