diff --git a/docs/develop/modules-event-handler.md b/docs/develop/modules-event-handler.md index c473f82..14b5a28 100644 --- a/docs/develop/modules-event-handler.md +++ b/docs/develop/modules-event-handler.md @@ -424,7 +424,7 @@ return [ ```php // Event.php -public static function onUserRegistration(UserEvent $event) +public static function onUserRegistration($event) { try { $service = new CrmService(); @@ -627,4 +627,4 @@ public static function onSpecialWidgetBeforeRun(WidgetCreateEvent $event) Since the widget is created by a call to `Yii::createObject()` the new widget class has to be compatible with the overwritten one, which means it has to support all possible properties of the original widget class. This could be achieved by extending the original widget. -::: \ No newline at end of file +:::