Browse Source

Fixes #7764: `\yii\helpers\ArrayHelper::toArray()` wasn't passing `$recursive` to `Arrayable::toArray`

tags/2.0.6
Brandon Kelly 10 years ago committed by Alexander Makarov
parent
commit
c339ed2949
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/helpers/BaseArrayHelper.php

1
framework/CHANGELOG.md

@ -7,6 +7,7 @@ Yii Framework 2 Change Log
- Bug #7305: Logging of Exception objects resulted in failure of the logger i.e. no logs being written (cebe)
- Bug #7374: Use proper INSERT syntax with default values when no values are specified (nineinchnick)
- Bug #7707: client-side `trim` validator now passes the trimmed value to subsequent validators (nkovacs)
- Bug #7764: `\yii\helpers\ArrayHelper::toArray()` wasn't passing `$recursive` to `Arrayable::toArray` (brandonkelly)
- Bug #8322: `yii\behaviors\TimestampBehavior::touch()` now throws an exception if owner is new record (klimov-paul)
- Bug #8451: `yii\i18n\Formatter` did not allow negative unix timestamps as input for date formatting (cebe)
- Bug #8483: sequence name in `Schema::getLastInsertId()` was not properly quoted (nineinchnick)

2
framework/helpers/BaseArrayHelper.php

@ -85,7 +85,7 @@ class BaseArrayHelper
}
}
if ($object instanceof Arrayable) {
$result = $object->toArray();
$result = $object->toArray([], [], $recursive);
} else {
$result = [];
foreach ($object as $key => $value) {

Loading…
Cancel
Save