Skip to content

Commit 83ae26f

Browse files
authored
bump dependency (#323)
1 parent 345a6b9 commit 83ae26f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"illuminate/support": "^10.47|^11.0|^12.0",
2929
"laravel/prompts": "^0.1.15|^0.2.0|^0.3.0",
3030
"pusher/pusher-php-server": "^7.2",
31-
"ratchet/rfc6455": "^0.3.1",
31+
"ratchet/rfc6455": "^0.4",
3232
"react/promise-timer": "^1.10",
3333
"react/socket": "^1.14",
3434
"symfony/console": "^6.0|^7.0",

src/Servers/Reverb/Http/Router.php

+8-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Laravel\Reverb\Servers\Reverb\Http;
44

55
use Closure;
6+
use GuzzleHttp\Psr7\HttpFactory;
67
use GuzzleHttp\Psr7\Message;
78
use Illuminate\Support\Arr;
89
use Laravel\Reverb\Servers\Reverb\Concerns\ClosesConnections;
@@ -31,7 +32,7 @@ class Router
3132
*/
3233
public function __construct(protected UrlMatcherInterface $matcher)
3334
{
34-
$this->negotiator = new ServerNegotiator(new RequestVerifier);
35+
$this->negotiator = new ServerNegotiator(new RequestVerifier, new HttpFactory);
3536
}
3637

3738
/**
@@ -48,9 +49,13 @@ public function dispatch(RequestInterface $request, Connection $connection): mix
4849
try {
4950
$route = $this->matcher->match($uri->getPath());
5051
} catch (MethodNotAllowedException $e) {
51-
return $this->close($connection, 405, 'Method not allowed.', ['Allow' => $e->getAllowedMethods()]);
52+
$this->close($connection, 405, 'Method not allowed.', ['Allow' => $e->getAllowedMethods()]);
53+
54+
return null;
5255
} catch (ResourceNotFoundException $e) {
53-
return $this->close($connection, 404, 'Not found.');
56+
$this->close($connection, 404, 'Not found.');
57+
58+
return null;
5459
}
5560

5661
$controller = $this->controller($route);

0 commit comments

Comments
 (0)