Skip to content

Commit 64552fd

Browse files
committed
fix: ResponseFactory eventStream type hint conflict
1 parent 527fdea commit 64552fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Illuminate/Contracts/Routing/ResponseFactory.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Illuminate\Contracts\Routing;
44

5+
use Closure;
6+
use Illuminate\Http\StreamedEvent;
7+
58
interface ResponseFactory
69
{
710
/**
@@ -65,7 +68,7 @@ public function jsonp($callback, $data = [], $status = 200, array $headers = [],
6568
* @param \Illuminate\Http\StreamedEvent|string|null $endStreamWith
6669
* @return \Symfony\Component\HttpFoundation\StreamedResponse
6770
*/
68-
public function eventStream($callback, array $headers = [], $endStreamWith = '</stream>');
71+
public function eventStream(Closure $callback, array $headers = [], StreamedEvent|string|null $endStreamWith = '</stream>');
6972

7073
/**
7174
* Create a new streamed response instance.

0 commit comments

Comments
 (0)