Skip to content

Commit

Permalink
use new Yii Arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Apr 4, 2024
1 parent 7184b82 commit 5f31337
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"ext-json": "*",
"ext-mbstring": "*",
"psr/container": "^1.0|^2.0",
"yiisoft/arrays": "^2.0|^3.0",
"yiisoft/arrays": "^3.1",
"yiisoft/data": "dev-master",
"yiisoft/factory": "^1.0",
"yiisoft/friendly-exception": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Column/Base/HeaderContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private function getLinkSortValue(
}

return OrderHelper::arrayToString(
ArrayHelper::replaceKey($resultOrder, $property, $originalProperty)
ArrayHelper::renameKey($resultOrder, $property, $originalProperty)
);

Check warning on line 161 in src/Column/Base/HeaderContext.php

View check run for this annotation

Codecov / codecov/patch

src/Column/Base/HeaderContext.php#L159-L161

Added lines #L159 - L161 were not covered by tests
}

Expand Down
2 changes: 1 addition & 1 deletion src/GridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ protected function prepareOrder(array &$order): void
foreach ($columns as $i => $column) {
if ($renderers[$i] instanceof OverrideOrderFieldsColumnInterface) {
foreach ($renderers[$i]->getOverrideOrderFields($column) as $from => $to) {
$order = ArrayHelper::replaceKey($order, $from, $to);
$order = ArrayHelper::renameKey($order, $from, $to);

Check warning on line 685 in src/GridView.php

View check run for this annotation

Codecov / codecov/patch

src/GridView.php#L680-L685

Added lines #L680 - L685 were not covered by tests
}
}
}
Expand Down

0 comments on commit 5f31337

Please sign in to comment.