From d3f31fd6f74715239042723f892e85c91cc16b5e Mon Sep 17 00:00:00 2001 From: Snider Date: Tue, 17 Mar 2026 09:08:03 +0000 Subject: [PATCH] fix(content): add missing strict_types and fix route path casing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add declare(strict_types=1) to 5 PHP files missing it (routes/console.php, 4 feature tests). Fix Boot.php route includes from Routes/ to routes/ to match actual directory casing — prevents breakage on case-sensitive filesystems. Co-Authored-By: Virgil --- Boot.php | 8 ++++---- routes/console.php | 2 ++ tests/Feature/ContentManagerTest.php | 2 ++ tests/Feature/ContentRenderTest.php | 2 ++ tests/Feature/FactoriesTest.php | 2 ++ tests/Feature/RevisionDiffTest.php | 2 ++ 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Boot.php b/Boot.php index 4dda2a5..ac043e5 100644 --- a/Boot.php +++ b/Boot.php @@ -149,8 +149,8 @@ class Boot extends ServiceProvider $event->livewire('content.admin.webhook-manager', View\Modal\Admin\WebhookManager::class); $event->livewire('content.admin.content-search', View\Modal\Admin\ContentSearch::class); - if (file_exists(__DIR__.'/Routes/web.php')) { - $event->routes(fn () => require __DIR__.'/Routes/web.php'); + if (file_exists(__DIR__.'/routes/web.php')) { + $event->routes(fn () => require __DIR__.'/routes/web.php'); } } @@ -159,8 +159,8 @@ class Boot extends ServiceProvider */ public function onApiRoutes(ApiRoutesRegistering $event): void { - if (file_exists(__DIR__.'/Routes/api.php')) { - $event->routes(fn () => require __DIR__.'/Routes/api.php'); + if (file_exists(__DIR__.'/routes/api.php')) { + $event->routes(fn () => require __DIR__.'/routes/api.php'); } } diff --git a/routes/console.php b/routes/console.php index d6f3c8b..ca1bbfa 100644 --- a/routes/console.php +++ b/routes/console.php @@ -1,3 +1,5 @@