Skip to content
This repository has been archived by the owner on Feb 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6 from jaygridley/master
Browse files Browse the repository at this point in the history
fix IPermission::getPrivilege() return type - could be null
  • Loading branch information
akadlec committed Dec 21, 2018
2 parents c547175 + 496d400 commit 4ebf05d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/IPub/Permissions/Entities/IPermission.php
Expand Up @@ -35,9 +35,9 @@ function getResource() : ?IResource;
/**
* Get permission privilege
*
* @return string
* @return string|NULL
*/
function getPrivilege() : string;
function getPrivilege() : ?string;

/**
* Get permission assertion callback
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Permissions/Entities/Permission.php
Expand Up @@ -81,7 +81,7 @@ public function getResource() : ?IResource
/**
* {@inheritdoc}
*/
public function getPrivilege() : string
public function getPrivilege() : ?string
{
return $this->privilege;
}
Expand Down

0 comments on commit 4ebf05d

Please sign in to comment.