Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Update Slice.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Apr 14, 2017
1 parent cef3688 commit e69c004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Slice/Slice.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e69c004

Please sign in to comment.