Browse Source

Make `array` the default return value

ndm2 11 years ago
parent
commit
5619f44fd7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Model/Behavior/SoftDeleteBehavior.php

+ 2 - 2
Model/Behavior/SoftDeleteBehavior.php

@@ -387,10 +387,10 @@ class SoftDeleteBehavior extends ModelBehavior {
 	 *
 	 * @param Model $model
 	 * @param integer $id The ID of the current record
-	 * @return array|null
+	 * @return array
 	 */
 	protected function _getCounterCacheKeys(Model $model, $id) {
-		$keys = null;
+		$keys = array();
 		if (!empty($model->belongsTo)) {
 			foreach ($model->belongsTo as $assoc) {
 				if (empty($assoc['counterCache'])) {