Completed
Push — master ( 6428e9...f0e2d5 )
by Kacper
03:20
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.
Xml/XmlElement.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
      *
259 259
      * @param string      $attribute Attribute name, optionally with prefix
260 260
      * @param string|null $uri       XML Namespace URI of attribute, prefix will be automatically looked up
261
-     * @return bool|mixed
261
+     * @return string
262 262
      */
263 263
     public function getAttribute(string $attribute, string $uri = null)
264 264
     {
Please login to merge, or discard this patch.
XmppClient.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
      * Registers module in client's dependency container.
208 208
      *
209 209
      * @param ClientModuleInterface $module Module to be registered
210
-     * @param bool|string|array     $alias  Module alias, class name by default.
210
+     * @param string|boolean     $alias  Module alias, class name by default.
211 211
      *                                      `true` for aliasing interfaces and parents too,
212 212
      *                                      `false` for aliasing as class name only
213 213
      *                                      array for multiple aliases,
Please login to merge, or discard this patch.