From 2880fb2899647de06bc0d0105cbd6792b5cc460f Mon Sep 17 00:00:00 2001 From: Luciano Baraglia Date: Wed, 30 Oct 2013 01:38:48 -0300 Subject: [PATCH] Typo [skip ci] --- 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 97ef905..02d12b5 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.'); * }); * ~~~