Skip to content

Commit

Permalink
Actualize throws PHPDOC tag for ManagerInterface::assign()` (#258)
Browse files Browse the repository at this point in the history
* Actualize `throws` PHPDOC tag for `ManagerInterface::assign()``

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
arogachev and StyleCIBot committed Feb 29, 2024
1 parent 63e912e commit 44912db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ManagerInterface.php
Expand Up @@ -5,7 +5,6 @@
namespace Yiisoft\Rbac;

use Closure;
use Exception;
use InvalidArgumentException;
use RuntimeException;
use Stringable;
Expand Down Expand Up @@ -91,7 +90,9 @@ public function hasChildren(string $parentName): bool;
* @param int|null $createdAt UNIX timestamp representing assignment creation time. When `null`, current time is
* used.
*
* @throws Exception If the role or permission has already been assigned to the user.
* @throws InvalidArgumentException
* - If an item with the given name is not found.
* - During the attempt of assigning permissions directly when it's disabled.
*
* @return self
*/
Expand Down

0 comments on commit 44912db

Please sign in to comment.