diff --git a/src/Asset/AbstractAsset.php b/src/Asset/AbstractAsset.php index 55c3753..b0502a4 100644 --- a/src/Asset/AbstractAsset.php +++ b/src/Asset/AbstractAsset.php @@ -34,7 +34,7 @@ abstract class AbstractAsset public const TYPE_COLLECTION = 'collection'; protected string $alias; - protected string|array|\Closure $source; + protected array|\Closure|string $source; protected array $dependencies = []; protected array $options = []; protected Manager $eManager; @@ -44,7 +44,7 @@ abstract public function load(): array; public function __construct( Manager $manager, string $alias, - array|string|\Closure $source, + array|\Closure|string $source, array|string $dependencies, Data $options, ) { @@ -71,7 +71,7 @@ public function getDependencies(): array return $this->dependencies; } - public function getSource(): array|string|\Closure + public function getSource(): array|\Closure|string { return $this->source; } diff --git a/src/Asset/Callback.php b/src/Asset/Callback.php index ace58cf..bfc30e3 100644 --- a/src/Asset/Callback.php +++ b/src/Asset/Callback.php @@ -20,7 +20,7 @@ final class Callback extends AbstractAsset { - protected string|array|\Closure $source; + protected array|\Closure|string $source; public function load(): array { diff --git a/src/Factory.php b/src/Factory.php index 801c50d..7971c17 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -60,7 +60,7 @@ public function getManager(): Manager */ public function create( string $alias, - \Closure|array|string $source, + array|\Closure|string $source, array|string $dependencies = [], array $options = [], ): AbstractAsset { diff --git a/src/Manager.php b/src/Manager.php index 309354a..d4c265c 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -64,7 +64,7 @@ public function getPath(): Path */ public function add( string $alias, - \Closure|array|string|null $source = null, + null|array|\Closure|string $source = null, array|string $dependencies = [], array $options = [], ): self { @@ -93,7 +93,7 @@ public function remove(string $alias): self */ public function register( string $alias, - \Closure|array|string $source, + array|\Closure|string $source, array|string $dependencies = [], array $options = [], ): self {