From 34d9dcdbc3f8e774740ef1ee51871a91e0777615 Mon Sep 17 00:00:00 2001 From: Nikolas Martens Date: Thu, 3 Mar 2016 14:53:42 +0600 Subject: [PATCH] Fixed error in SilexBreadCrumbsTrail --- src/delivery/web/adapters/silex/SilexBreadCrumbsTrail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/delivery/web/adapters/silex/SilexBreadCrumbsTrail.php b/src/delivery/web/adapters/silex/SilexBreadCrumbsTrail.php index 116d83c..824efd4 100644 --- a/src/delivery/web/adapters/silex/SilexBreadCrumbsTrail.php +++ b/src/delivery/web/adapters/silex/SilexBreadCrumbsTrail.php @@ -32,7 +32,7 @@ private function readCrumbs(ParameterBag $cookies) { $serialized = json_decode($cookies->get(self::COOKIE_NAME), true); return array_map(function ($item) { return new BreadCrumb($item['caption'], $item['target']); - }, $serialized); + }, (array)$serialized); } public function getCookie() {