We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7a5452 commit a6538ffCopy full SHA for a6538ff
lib/internal/Magento/Framework/Url.php
@@ -835,12 +835,14 @@ public function getUrl($routePath = null, $routeParams = null)
835
$isArray = is_array($routeParams);
836
837
if ($isArray) {
838
- foreach ($routeParams as $item) {
839
- if (is_object($item)) {
840
- $isCached = false;
841
- break;
+ array_walk_recursive(
+ $routeParams,
+ function ($item) use (&$isCached) {
+ if (is_object($item)) {
842
+ $isCached = false;
843
+ }
844
}
- }
845
+ );
846
847
848
if(!$isCached) {
0 commit comments