Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eabc511

Browse files
authored
Fix response typehint in boot (#184)
1 parent 42fede5 commit eabc511

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/RapidezStatamicServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Rapidez\Statamic;
44

55
use Illuminate\Foundation\Bootstrap\BootProviders;
6-
use Illuminate\Http\Response;
76
use Illuminate\Routing\Router;
87
use Illuminate\Support\Facades\Cache;
98
use Illuminate\Support\Facades\Event;
@@ -35,6 +34,7 @@
3534
use Statamic\Sites\Sites;
3635
use Statamic\StaticCaching\Middleware\Cache as StaticCache;
3736
use Statamic\Http\Middleware\RedirectAbsoluteDomains;
37+
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
3838
use TorMorten\Eventy\Facades\Eventy;
3939
use Statamic\Facades\Site as SiteFacade;
4040
use Statamic\View\Cascade as StatamicCascade;
@@ -280,7 +280,7 @@ public function bootStack(): static
280280

281281
public function bootUncacheable(): static
282282
{
283-
Eventy::addFilter('uncacheable.response', function (Response $response) {
283+
Eventy::addFilter('uncacheable.response', function (SymfonyResponse $response) {
284284
$response->header('X-Statamic-Uncacheable', 'true');
285285
return $response;
286286
});

0 commit comments

Comments
 (0)