mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 06:17:56 +08:00
Merge pull request #3525 from Allineer/patch-1
Small typo in the framework/rbac/PhpManager.php
This commit is contained in:
@@ -537,7 +537,7 @@ class PhpManager extends BaseManager
|
||||
$this->_items[$item->name] = $item;
|
||||
if ($name !== $item->name) {
|
||||
if (isset($this->_items[$item->name])) {
|
||||
throw new InvalidParamException("Unable to change the item name. The name '{$item->name} is already used by another item.");
|
||||
throw new InvalidParamException("Unable to change the item name. The name '{$item->name}' is already used by another item.");
|
||||
}
|
||||
if (isset($this->_items[$name])) {
|
||||
unset ($this->_items[$name]);
|
||||
|
||||
Reference in New Issue
Block a user