From 9ce8e7515a361e5d4863dc197a69917c4155b592 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Mon, 10 Oct 2022 15:28:38 +0000 Subject: [PATCH] - Quickfix from error found during PHP 8 migration --- src/Routing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Routing.php b/src/Routing.php index 27ab05f..22eecc2 100644 --- a/src/Routing.php +++ b/src/Routing.php @@ -96,7 +96,7 @@ class Routing { return $redirect; } - if ( $forbidden = $this->security->taxus($class, $method, $object->user) ) { + if ( $forbidden = $this->security->taxus($class, $method, $object->user ?? null) ) { return $forbidden; }