From 1f3795ab940274d0a27962d66e15b1101cf39092 Mon Sep 17 00:00:00 2001 From: Mathias Hansen Date: Fri, 1 Mar 2024 10:26:53 +0100 Subject: [PATCH] fix: Allow core to be null This is the case when Wafris is configured to be disabled --- src/AllowRequestMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AllowRequestMiddleware.php b/src/AllowRequestMiddleware.php index 8f7fed0..03b4d6f 100755 --- a/src/AllowRequestMiddleware.php +++ b/src/AllowRequestMiddleware.php @@ -8,7 +8,7 @@ class AllowRequestMiddleware { - public function __construct(private Core $core) + public function __construct(private ?Core $core) { }