Completed
Pull Request — 2.1 (#12493)
by Misbahul D
11:01
created
framework/base/Event.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      * Returns a value indicating whether there is any handler attached to the specified class-level event.
145 145
      * Note that this method will also check all parent classes to see if there is any handler attached
146 146
      * to the named event.
147
-     * @param string|object $class the object or the fully qualified class name specifying the class-level event.
147
+     * @param Component $class the object or the fully qualified class name specifying the class-level event.
148 148
      * @param string $name the event name.
149 149
      * @return boolean whether there is any handler attached to the event.
150 150
      */
@@ -178,8 +178,8 @@  discard block
 block discarded – undo
178 178
      * Triggers a class-level event.
179 179
      * This method will cause invocation of event handlers that are attached to the named event
180 180
      * for the specified class and all its parent classes.
181
-     * @param string|object $class the object or the fully qualified class name specifying the class-level event.
182
-     * @param string|Event $event the event parameter. If not set, a default [[Event]] object will be created.
181
+     * @param Component $class the object or the fully qualified class name specifying the class-level event.
182
+     * @param Event $event the event parameter. If not set, a default [[Event]] object will be created.
183 183
      * @param array $params Description
184 184
      */
185 185
     public static function trigger($class, $event, $params = [])
Please login to merge, or discard this patch.