Skip to content

Commit

Permalink
fix: php74
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb committed Mar 3, 2022
1 parent 2a1dca7 commit e0181dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Actions/DownloadFileAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(string $path, ?string $name = null, array $headers =
$this->headers($headers);
}

public function name(string $name): static
public function name(string $name): self
{
$this->name = $name;

Expand All @@ -42,7 +42,7 @@ public function disk(?string $disk): self
return $this;
}

public function headers(array $headers): static
public function headers(array $headers): self
{
$this->headers = $headers;

Expand Down
2 changes: 1 addition & 1 deletion src/Actions/LoginAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(Authenticatable $user, $httpResponse = null, ?string
$this->guard = $guard;
}

public function guard(string $guard): static
public function guard(string $guard): self
{
$this->guard = $guard;

Expand Down
4 changes: 2 additions & 2 deletions src/Actions/ResponseAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public function __construct($httpResponse = null)
$this->response($httpResponse);
}

public function response($response): static
public function response($response): self
{
$this->httpResponse = $this->serializeResponse($response);

return $this;
}

public function redirect($response): static
public function redirect($response): self
{
$this->httpResponse = $this->serializeResponse($response);

Expand Down

0 comments on commit e0181dc

Please sign in to comment.