This commit is contained in:
Tim Kelty
2024-08-22 16:12:42 -04:00
parent be3d8efe0b
commit ff60985e51
2 changed files with 1 additions and 2 deletions

View File

@ -1783,7 +1783,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
{
if (is_array($newValue) && is_array($oldValue)) {
// Only sort associative arrays
$sorter = function(&$array) {
$sorter = function (&$array) {
if (ArrayHelper::isAssociative($array)) {
ksort($array);
}

View File

@ -823,5 +823,4 @@ SQL;
{
return Yii::createObject(ColumnSchemaBuilder::className(), [$type, $length, $this->db]);
}
}