- Added NULL as a valid return value to Taxus granted() method

This commit is contained in:
Dave Mc Nicoll 2024-06-02 19:55:36 +00:00
parent f219cf25de
commit 72be397a72

@ -44,7 +44,12 @@ class Taxus
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;