src/Rbac/PhpManager.php
public function getAssignment($roleName, $userId)
    {
        return isset($this->assignments[$userId][$roleName])
            ? resolve($this->assignments[$userId][$roleName])
            : reject(new Error("Assignment for user '$userId' with role '$roleName' not found"));
    }
public function getAssignment($roleName, $userId)
    {
        return isset($this->assignments[$userId][$roleName])
            ? resolve($this->assignments[$userId][$roleName])
            : reject(new Error("Assignment for user '$userId' with role '$roleName' not found"));
    }
{@inheritdoc}