Skip to content

Commit e855b0d

Browse files
philbates35Phil Bates
andauthored
FrankenPHP: Remove unnecessary use statement to fix PHP warning (#813)
Currently when running octane:work with full error reporting enabled it shows the following warning: INFO Server running… Local: http://0.0.0.0:8000 Press Ctrl+C to stop the server WARN PHP Warning: The use statement with non-compound name 'Throwable' has no effect in /app/vendor/laravel/octane/bin/frankenphp-worker.php on line 9 WARN PHP Warning: The use statement with non-compound name 'Throwable' has no effect in /app/vendor/laravel/octane/bin/frankenphp-worker.php on line 9 WARN PHP Warning: The use statement with non-compound name 'Throwable' has no effect in /app/vendor/laravel/octane/bin/frankenphp-worker.php on line 9 WARN PHP Warning: The use statement with non-compound name 'Throwable' has no effect in /app/vendor/laravel/octane/bin/frankenphp-worker.php on line 9 ... Co-authored-by: Phil Bates <[email protected]>
1 parent 1813d57 commit e855b0d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

bin/frankenphp-worker.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Laravel\Octane\Stream;
77
use Laravel\Octane\Worker;
88
use Symfony\Component\HttpFoundation\Response;
9-
use Throwable;
109

1110
if ((! ($_SERVER['FRANKENPHP_WORKER'] ?? false)) || ! function_exists('frankenphp_handle_request')) {
1211
echo 'FrankenPHP must be in worker mode to use this script.';

0 commit comments

Comments
 (0)