Skip to content

Commit 7a22de5

Browse files
davidyellDavid Yell
authored and
David Yell
committed
Changed default to prevent a null TypeError
1 parent 93768c4 commit 7a22de5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/support/src/Assets/Asset.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ abstract class Asset
1313

1414
protected string $package;
1515

16-
protected ?string $path = null;
16+
protected string $path = null;
1717

18-
final public function __construct(string $id, ?string $path = null)
18+
final public function __construct(string $id, ?string $path = '/')
1919
{
2020
$this->id = $id;
2121
$this->path = $path;
2222
}
2323

24-
public static function make(string $id, ?string $path = null): static
24+
public static function make(string $id, ?string $path = '/'): static
2525
{
2626
return app(static::class, ['id' => $id, 'path' => $path]);
2727
}

0 commit comments

Comments
 (0)