diff --git a/composer.json b/composer.json index 9c04671..1af7686 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": ">=5.5.0", + "php": ">=5.6.0", "illuminate/support": "~5.0" }, "require-dev": { diff --git a/src/Transformers/Transformer.php b/src/Transformers/Transformer.php index ca7a550..0a202ed 100644 --- a/src/Transformers/Transformer.php +++ b/src/Transformers/Transformer.php @@ -35,10 +35,13 @@ public function __construct(ViewBinder $viewBinder, $namespace = 'window') /** * Bind the given array of variables to the view. + * + * @param mixed ...$args + * @return array */ - public function put() + public function put(...$args) { - $js = $this->constructJavaScript($this->normalizeInput(func_get_args())); + $js = $this->constructJavaScript($this->normalizeInput($args)); $this->viewBinder->bind($js);