From 29f5dc37a55836b1c24013856263228ce122137e Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Sat, 3 Jan 2015 09:22:18 +0300 Subject: [PATCH] Correct phpDoc for return in several cases close #6733 --- framework/db/ActiveRecord.php | 4 ++-- framework/db/BaseActiveRecord.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/db/ActiveRecord.php b/framework/db/ActiveRecord.php index 08492cc..322796c 100644 --- a/framework/db/ActiveRecord.php +++ b/framework/db/ActiveRecord.php @@ -567,7 +567,7 @@ class ActiveRecord extends BaseActiveRecord * In the above step 1 and 3, events named [[EVENT_BEFORE_DELETE]] and [[EVENT_AFTER_DELETE]] * will be raised by the corresponding methods. * - * @return integer|boolean the number of rows deleted, or false if the deletion is unsuccessful for some reason. + * @return integer|false the number of rows deleted, or false if the deletion is unsuccessful for some reason. * Note that it is possible the number of rows deleted is 0, even though the deletion execution is successful. * @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data * being deleted is outdated. @@ -596,7 +596,7 @@ class ActiveRecord extends BaseActiveRecord /** * Deletes an ActiveRecord without considering transaction. - * @return integer|boolean the number of rows deleted, or false if the deletion is unsuccessful for some reason. + * @return integer|false the number of rows deleted, or false if the deletion is unsuccessful for some reason. * Note that it is possible the number of rows deleted is 0, even though the deletion execution is successful. * @throws StaleObjectException */ diff --git a/framework/db/BaseActiveRecord.php b/framework/db/BaseActiveRecord.php index 0517452..be0fe28 100644 --- a/framework/db/BaseActiveRecord.php +++ b/framework/db/BaseActiveRecord.php @@ -767,7 +767,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface * In the above step 1 and 3, events named [[EVENT_BEFORE_DELETE]] and [[EVENT_AFTER_DELETE]] * will be raised by the corresponding methods. * - * @return integer|boolean the number of rows deleted, or false if the deletion is unsuccessful for some reason. + * @return integer|false the number of rows deleted, or false if the deletion is unsuccessful for some reason. * Note that it is possible the number of rows deleted is 0, even though the deletion execution is successful. * @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data * being deleted is outdated.