Commit 0cdf2f51 by Qiang Xue

Fixed code break.

parent dee0382c
...@@ -194,6 +194,8 @@ class User extends Component ...@@ -194,6 +194,8 @@ class User extends Component
if ($identity instanceof IdentityInterface) { if ($identity instanceof IdentityInterface) {
$this->_identity = $identity; $this->_identity = $identity;
$this->_access = []; $this->_access = [];
} elseif ($identity === null) {
$this->_identity = null;
} else { } else {
throw new InvalidValueException('The identity object must implement IdentityInterface.'); throw new InvalidValueException('The identity object must implement IdentityInterface.');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment