src/Rbac/PhpManager.php
public function revoke($role, $userId)
    {
        if (isset($this->assignments[$userId][$role->name])) {
            unset($this->assignments[$userId][$role->name]);
            return $this->saveAssignments();
        }

        return reject(new Error("User '$userId' has no role '$role->name'"));
    }
public function revoke($role, $userId)
    {
        if (isset($this->assignments[$userId][$role->name])) {
            unset($this->assignments[$userId][$role->name]);
            return $this->saveAssignments();
        }

        return reject(new Error("User '$userId' has no role '$role->name'"));
    }
{@inheritdoc}