Skip to content

Commit

Permalink
Merge pull request #15274 from davidyell/patch-1
Browse files Browse the repository at this point in the history
bug: Fix type error in Asset
  • Loading branch information
danharrin authored Jan 10, 2025
2 parents 0ad682f + 4fb8f2e commit cc95f8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/support/src/Assets/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ abstract class Asset
{
protected string $id;

protected string $path;

protected bool $isLoadedOnRequest = false;

protected string $package;

protected ?string $path = null;

final public function __construct(string $id, ?string $path = null)
final public function __construct(string $id, string $path)
{
$this->id = $id;
$this->path = $path;
}

public static function make(string $id, ?string $path = null): static
public static function make(string $id, string $path): static
{
return app(static::class, ['id' => $id, 'path' => $path]);
}
Expand Down

0 comments on commit cc95f8a

Please sign in to comment.