From 72be397a721cda3b7f8728a5d698afaf44c2833d Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Sun, 2 Jun 2024 19:55:36 +0000 Subject: [PATCH] - Added NULL as a valid return value to Taxus granted() method --- src/Taxus.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Taxus.php b/src/Taxus.php index ba438f7..4c43f77 100644 --- a/src/Taxus.php +++ b/src/Taxus.php @@ -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;