Skip to content

Commit 1d88000

Browse files
fix: guard nullable on setGuard
1 parent 2b9230c commit 1d88000

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Http/Resources/ApiCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ApiCollection extends ResourceCollection
1717
*/
1818
protected ?string $guard = null;
1919

20-
public function setGuard(string $guard): static
20+
public function setGuard(?string $guard): static
2121
{
2222
$this->guard = $guard;
2323

src/Http/Resources/Contracts/AllowableFields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ protected function mapFields($request): array
149149
return $this->filterAllowedFields($fields);
150150
}
151151

152-
public function setGuard(string $guard): static
152+
public function setGuard(?string $guard): static
153153
{
154154
$this->guard = $guard;
155155

0 commit comments

Comments
 (0)