Completed
Push — master ( 10de85...76baec )
by Kacper
03:21
created
Utils/BetterEmitter.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -32,6 +32,10 @@
 block discarded – undo
32 32
         return $this->addListener($event, $this->getConditionalCallable($listener, $condition), $priority);
33 33
     }
34 34
 
35
+    /**
36
+     * @param string $event
37
+     * @param \Closure $condition
38
+     */
35 39
     public function once($event, callable $listener, $condition = null, int $priority = 0)
36 40
     {
37 41
         return $this->on($event, $this->getOnceCallable($this->getConditionalCallable($listener, $condition), $event), null, $priority);
Please login to merge, or discard this patch.