From 02e11c21d7dd0b936befece757a4d5ba8e6a37c1 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Mon, 2 Dec 2024 14:24:19 -0500 Subject: [PATCH] nitpick --- src/Console/Commands/StaticWarm.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Console/Commands/StaticWarm.php b/src/Console/Commands/StaticWarm.php index b451673baa..7bb26f59b6 100644 --- a/src/Console/Commands/StaticWarm.php +++ b/src/Console/Commands/StaticWarm.php @@ -9,6 +9,7 @@ use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use Illuminate\Console\Command; +use Illuminate\Http\Request as HttpRequest; use Illuminate\Routing\Route; use Illuminate\Support\Collection; use Statamic\Console\EnhancesCommands; @@ -179,9 +180,7 @@ private function uris(): Collection ->merge($this->additionalUris()) ->unique() ->reject(function ($uri) use ($cacher) { - if ($this->option('uncached') && - $cacher->hasCachedPage(\Illuminate\Http\Request::create($uri)) - ) { + if ($this->option('uncached') && $cacher->hasCachedPage(HttpRequest::create($uri))) { return true; }