From e69c004d46b3c203a22a6ee5121d101021e0ed3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=B0=D0=B1=D0=B8=D1=87=D0=B5=D0=B2=20=D0=9C=D0=B0?= =?UTF-8?q?=D0=BA=D1=81=D0=B8=D0=BC?= Date: Fri, 14 Apr 2017 11:41:03 +0300 Subject: [PATCH] Update Slice.php --- src/Slice/Slice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Slice/Slice.php b/src/Slice/Slice.php index ff82abd..6955915 100644 --- a/src/Slice/Slice.php +++ b/src/Slice/Slice.php @@ -37,7 +37,7 @@ protected function walk($slice) array_walk_recursive($this->storage, function (&$value) use ($slice) { - if ($value{0} === '%' && $value{strlen($value) - 1} === '%') + if (!is_object($value) && $value{0} === '%' && $value{strlen($value) - 1} === '%') { $path = substr($value, 1, -1); $value = $slice->getData($path);