From 3ef67c2a87942dbcad53557f1b1877461604a0fd Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 12 Mar 2024 16:41:58 +0100 Subject: [PATCH] fix(Middleware): NC26 compat Signed-off-by: Arthur Schiwon --- lib/Middleware/PermissionMiddleware.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Middleware/PermissionMiddleware.php b/lib/Middleware/PermissionMiddleware.php index 5b736791b..7f6dc2d04 100644 --- a/lib/Middleware/PermissionMiddleware.php +++ b/lib/Middleware/PermissionMiddleware.php @@ -33,7 +33,9 @@ public function __construct( * @throws PermissionError * @throws InternalError */ - public function beforeController(Controller $controller, string $methodName): void { + public function beforeController($controller, $methodName): void { + // we can have type hinting in the signature only after dropping NC26 – calling parent to enforce on newer releases + parent::beforeController($controller, $methodName); $this->assertCanManageNode(); $this->assertCanManageContext(); }