diff --git a/src/Strategy/Walk.php b/src/Strategy/Walk.php index 9fe367e..2af56d0 100644 --- a/src/Strategy/Walk.php +++ b/src/Strategy/Walk.php @@ -1,18 +1,17 @@ expression = $expression; + $this->copy = new Copy($path); } public function __invoke($data, $context = null) { - return parent::__invoke($this->getMapper()->map($data, $this->expression, $context), $context); + return call_user_func($this->copy, parent::__invoke($data, $context), $context); } }