From 855d50fb0bcf5a7d4ef33aafeb38533b94095436 Mon Sep 17 00:00:00 2001 From: Kieran Date: Fri, 6 Oct 2023 10:19:50 +0100 Subject: [PATCH] Fix creation of dynamic property HasPermission::$request is deprecated --- src/Kodeine/Acl/Middleware/HasPermission.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Kodeine/Acl/Middleware/HasPermission.php b/src/Kodeine/Acl/Middleware/HasPermission.php index 9656ef0..b3eacd5 100644 --- a/src/Kodeine/Acl/Middleware/HasPermission.php +++ b/src/Kodeine/Acl/Middleware/HasPermission.php @@ -29,6 +29,9 @@ class HasPermission ], ]; + /** @var \Illuminate\Http\Request $request */ + protected $request; + /** * Handle an incoming request. *