Skip to content

Commit

Permalink
fix(Middleware): NC26 compat
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Mar 12, 2024
1 parent d35bf13 commit 3ef67c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Middleware/PermissionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 3ef67c2

Please sign in to comment.