From ecf4b8c19070199fa9c86a3d20781f94e7755c3d Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Sat, 14 Feb 2026 09:17:42 -0800 Subject: [PATCH] Code sniff fix --- routing/page_loader_phpbb4.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routing/page_loader_phpbb4.php b/routing/page_loader_phpbb4.php index 0a81202..9d9ff67 100644 --- a/routing/page_loader_phpbb4.php +++ b/routing/page_loader_phpbb4.php @@ -41,7 +41,7 @@ public function __construct(driver_interface $db, string $pages_table) * @param string|null $type The type of the resource, or null if not specified. * @return RouteCollection The collection of loaded routes. */ - public function load(mixed $resource, ?string $type = null): RouteCollection + public function load(mixed $resource, string|null $type = null): RouteCollection { return $this->core->load_routes(); } @@ -53,7 +53,7 @@ public function load(mixed $resource, ?string $type = null): RouteCollection * @param string|null $type The type of the resource, or null if not specified. * @return bool True if the loader supports the resource and type, false otherwise. */ - public function supports(mixed $resource, ?string $type = null): bool + public function supports(mixed $resource, string|null $type = null): bool { return $this->core->supports_type($type); }