From 0222462ed7a045e7e829a2807522c768908b7db8 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Mon, 4 Nov 2013 10:38:17 +0100 Subject: [PATCH] fixed event php-doc --- framework/yii/base/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/base/Event.php b/framework/yii/base/Event.php index 02d12b5..a678c89 100644 --- a/framework/yii/base/Event.php +++ b/framework/yii/base/Event.php @@ -58,7 +58,7 @@ class Event extends Object * `afterInsert` event: * * ~~~ - * Event::on([ActiveRecord::className(), ActiveRecord::EVENT_AFTER_INSERT], function ($event) { + * Event::on(ActiveRecord::className(), ActiveRecord::EVENT_AFTER_INSERT, function ($event) { * Yii::trace(get_class($event->sender) . ' is inserted.'); * }); * ~~~