Skip to content

Commit c7f1268

Browse files
committed
Fix phpstan error loading kernel in error.php
1 parent 294b220 commit c7f1268

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

public/error.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
$queryString = $_SERVER['QUERY_STRING'] ?? '';
2626

2727
/* this will exit processing if a response is provided */
28-
ServiceLocator::make()->get(HttpKernel::class)->handleErrorInteropEntry();
28+
$kernel = ServiceLocator::make()->get(HttpKernel::class);
29+
assert($kernel instanceof HttpKernel);
30+
$kernel->handleErrorInteropEntry();
2931

3032
// ============================================================================
3133
// Mozilla Search Sidebar plugin resource file handling (need to be mirror

0 commit comments

Comments
 (0)