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

Commit bb2a507

Browse files
committed
Merge pull request repejota#21 from repejota/feature/20
Fixed repejota#20
2 parents 77afae2 + 9007bdf commit bb2a507

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Connection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ public function publish($subject, $payload)
242242
/**
243243
* Subscribes to an specific event given a subject.
244244
*
245-
* @param string $subject Message topic.
246-
* @param mixed $callback Closure to be executed as callback.
245+
* @param string $subject Message topic.
246+
* @param \Closure $callback Closure to be executed as callback.
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)