@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * initialization in class constructors etc. ensure that it is evaluated once, |
150 | 150 | * or it might trigger same event handler multiple times. |
151 | 151 | * |
152 | - * @param AnnotatedInterface|object|string $model the object specifying the class-level event. |
|
152 | + * @param AnnotatedInterface $model the object specifying the class-level event. |
|
153 | 153 | * @param string $name the event name. |
154 | 154 | * @param callable $handler the event handler. |
155 | 155 | * @param mixed $data the data to be passed to the event handler when the event is triggered. |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | /** |
406 | 406 | * Get properties which should be propagated. |
407 | 407 | * NOTE: This is cached, as it might be called numerous times |
408 | - * @param object $model |
|
408 | + * @param AnnotatedInterface $model |
|
409 | 409 | * @return bool[] |
410 | 410 | */ |
411 | 411 | private static function getPropagatedProperties($model) |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | * Get class/interface/trait names from which class is composed. |
432 | 432 | * |
433 | 433 | * @param string $className |
434 | - * @return array |
|
434 | + * @return null|callable |
|
435 | 435 | */ |
436 | 436 | public static function getPartials($className) |
437 | 437 | { |