Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 9007bdf

Browse files
committed
Fix Type hint "\Closure" missing for $callback
1 parent 6c1c131 commit 9007bdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function publish($subject, $payload)
247247
*
248248
* @return string
249249
*/
250-
public function subscribe($subject, $callback)
250+
public function subscribe($subject, \Closure $callback)
251251
{
252252
$sid = uniqid();
253253
$msg = 'SUB '.$subject.' '.$sid;

0 commit comments

Comments
 (0)