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

Commit 6c1c131

Browse files
repejotaadriacidre
authored andcommitted
Fixed repejota#20
* subscribe method docstring now specifies the correct type for the callback. * Tested with PHPStorm. * Added .idea folder to .gitignore
1 parent 77afae2 commit 6c1c131

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ 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
*/

0 commit comments

Comments
 (0)