Skip to content

Commit

Permalink
Merge pull request #4 from aw-studio/feat/updates
Browse files Browse the repository at this point in the history
Update  for later laravel versions
  • Loading branch information
lpheller authored May 13, 2024
2 parents 485ee35 + c91640f commit 680bb90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Components/ScriptComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ScriptComponent extends Component
*
* @var Factory
*/
public $factory;
public $scriptFactory;

/**
* Create new StyleComponent instance.
Expand All @@ -41,7 +41,7 @@ class ScriptComponent extends Component
public function __construct(Factory $factory, $lang = 'css')
{
$this->lang = $lang;
$this->factory = $factory;
$this->scriptFactory = $factory;

$this->makeScript();
}
Expand All @@ -59,7 +59,7 @@ public function makeScript()
return;
}

$this->script = $this->factory->make($path);
$this->script = $this->scriptFactory->make($path);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Factory
/**
* Style stack.
*
* @var string
* @var array
*/
protected $stack = [];

Expand All @@ -23,7 +23,7 @@ class Factory
/**
* Engine resolver.
*
* @var \BladeScript\Contracts\Engine
* @var \BladeScript\Contracts\ScriptEngine
*/
protected $engine;

Expand Down

0 comments on commit 680bb90

Please sign in to comment.