Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct($filesystem, $cache_path, $config, $app)
* @param string $path
* @return void
*/
public function compile($path)
public function compile($path = null)
{
$contents = $this->compileString($path);

Expand Down
5 changes: 2 additions & 3 deletions src/Bilaliqbalr/StringBladeCompiler/StringView.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace Bilaliqbalr\StringBladeCompiler;

use View;
use Closure;
use ArrayAccess;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Renderable;
Expand Down Expand Up @@ -43,10 +42,10 @@ public function make($view, $data = array(), $mergeData = array())
/**
* Get the string contents of the view.
*
* @param \Closure $callback
* @param callable $callback
* @return string
*/
public function render(Closure $callback = null)
public function render(callable $callback = null)
{
$contents = $this->renderContents();

Expand Down