Skip to content

Commit

Permalink
fix laravel-8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
shibby committed Mar 13, 2024
1 parent 21784b0 commit 07d49cd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/ProcessRequestForwarder.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class ProcessRequestForwarder implements ShouldQueue
* Create a new job instance.
*/
public function __construct(
public readonly string $url,
public readonly array $params,
public readonly ?string $webhookName = null,
public string $url,
public array $params,
public ?string $webhookName = null,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Providers/DefaultProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class DefaultProvider implements ProviderInterface
{
public function __construct(
private readonly Factory $client,
private Factory $client,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Providers/Discord.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Discord implements ProviderInterface
{
public function __construct(
private readonly Factory $client,
private Factory $client,
) {
}

Expand Down
4 changes: 2 additions & 2 deletions src/RequestForwarder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
class RequestForwarder
{
public function __construct(
private readonly Factory $client,
private readonly array $webhooks,
private Factory $client,
private array $webhooks,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/RequestForwarderMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class RequestForwarderMiddleware
{
public function __construct(
public readonly RequestForwarder $requestForwarder,
public RequestForwarder $requestForwarder,
) {
}

Expand Down

0 comments on commit 07d49cd

Please sign in to comment.