Repository: laravel/octane (language: php)

Issue:
Call to a member function status() on bool in EnsureRequestsDontExceedMaxExecutionTime
- Octane Version: v1.3.1
- Laravel Version: v9.32.0
- PHP Version: 8.1.1
- Server & Version: OpenSwoole 4.11.1
- Database Driver & Version: postgres 14

### Description:

<img width="1676" alt="Screen Shot 2022-09-28 at 18 33 00" src="https://user-images.githubusercontent.com/4256471/192892757-bf6b9bc2-4355-43bc-85a8-15f8823ec53c.png">

this line https://github.com/laravel/octane/blob/1.x/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php#L33

is returning a bool instead of a http response

### Steps To Reproduce:

Make a request longer than config `max_execution_time`



Discussion / hints:
Can you send in a PR?
> Can you send in a PR?

Sure, What behavior do you want that I implement when `$response = Response::create($this->server, $row['fd']);` returns a bool?
@nunomaduro do you know?

Fix patch:
diff --git a/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php b/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php
index 0902d44f7..a84b7cc4e 100644
--- a/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php
+++ b/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php
@@ -31,8 +31,11 @@ public function __invoke()
 
                 if ($this->server instanceof Server) {
                     $response = Response::create($this->server, $row['fd']);
-                    $response->status(408);
-                    $response->end();
+
+                    if ($response) {
+                        $response->status(408);
+                        $response->end();
+                    }
                 }
             }
         }


Test patch: