- Added NULL as a valid return value to Taxus granted() method
This commit is contained in:
parent
f219cf25de
commit
72be397a72
@ -44,7 +44,12 @@ class Taxus
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function granted($name, ...$arguments) : bool
|
/**
|
||||||
|
* @param $name
|
||||||
|
* @param ...$arguments
|
||||||
|
* @return bool|null Return TRUE if granted, FALSE if not and NULL if this call should be skipped
|
||||||
|
*/
|
||||||
|
public function granted($name, ...$arguments) : null|bool
|
||||||
{
|
{
|
||||||
$name = $name instanceof \BackedEnum ? $name->value : $name;
|
$name = $name instanceof \BackedEnum ? $name->value : $name;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user