Skip to content

Commit

Permalink
Merge pull request #44 from ppaulis/1.7.x
Browse files Browse the repository at this point in the history
fixed wrong typing in doc blocks
  • Loading branch information
Ocramius authored Jun 13, 2022
2 parents 318e102 + 8428fb4 commit 01d94f3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Identity/AuthenticatedIdentity.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
namespace Laminas\ApiTools\MvcAuth\Identity;

use Laminas\Permissions\Rbac\Role;
use Laminas\Permissions\Rbac\RoleInterface;

class AuthenticatedIdentity extends Role implements IdentityInterface
{
/** @var string|RoleInterface */
/** @var string|IdentityInterface */
protected $identity;

/** @param string|RoleInterface $identity */
/** @param string|IdentityInterface $identity */
public function __construct($identity)
{
$this->identity = $identity;
Expand All @@ -24,7 +23,7 @@ public function getRoleId()
return $this->name;
}

/** @return string|RoleInterface */
/** @return string|IdentityInterface */
public function getAuthenticationIdentity()
{
return $this->identity;
Expand Down

0 comments on commit 01d94f3

Please sign in to comment.