From e0181dcbf5933ff5cfc09e21aeb9ffdeb5e1094f Mon Sep 17 00:00:00 2001 From: Cesar Date: Thu, 3 Mar 2022 11:42:15 +0100 Subject: [PATCH] fix: php74 --- src/Actions/DownloadFileAction.php | 4 ++-- src/Actions/LoginAction.php | 2 +- src/Actions/ResponseAction.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Actions/DownloadFileAction.php b/src/Actions/DownloadFileAction.php index b51b2c8..5866dbe 100644 --- a/src/Actions/DownloadFileAction.php +++ b/src/Actions/DownloadFileAction.php @@ -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; @@ -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; diff --git a/src/Actions/LoginAction.php b/src/Actions/LoginAction.php index 4158e70..2529711 100644 --- a/src/Actions/LoginAction.php +++ b/src/Actions/LoginAction.php @@ -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; diff --git a/src/Actions/ResponseAction.php b/src/Actions/ResponseAction.php index f02b1b2..6c3951d 100644 --- a/src/Actions/ResponseAction.php +++ b/src/Actions/ResponseAction.php @@ -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);