Skip to content

Commit

Permalink
Removed hard requirement on array argument
Browse files Browse the repository at this point in the history
The view class later tries to cast it into an array
if it's a stdObject or instance of Arrayable
  • Loading branch information
nsrosenqvist committed Mar 21, 2017
1 parent 3694738 commit a066709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function compiledPath($path)
return $this->compiler->getCompiledPath($this->find($path));
}

function render($path, array $data = [])
function render($path, $data = [])
{
return $this->compile($path, $data)->render();
}
Expand Down

0 comments on commit a066709

Please sign in to comment.