diff --git a/PHPCI/Builder.php b/PHPCI/Builder.php index 2043531f..a7b60bc1 100644 --- a/PHPCI/Builder.php +++ b/PHPCI/Builder.php @@ -263,10 +263,11 @@ class Builder */ public function interpolate($input) { - $translations = array_walk($this->getInterpolationVars(), function($value, &$key) { - $key = '%'.$key.'%'; - }); - return strtr($input, $translations); + $trans_table = array(); + foreach ($this->getInterpolationVars() as $key => $value) { + $trans_table['%'.$key.'%'] = $value; + } + return strtr($input, $trans_table); } /**