Skip to content

Commit

Permalink
cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Feb 29, 2024
1 parent f40eba2 commit 20840d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Unit/AcceptLanguageNegotiatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public static function provideNegotiateCases(): iterable
private static function getRequest(?string $acceptLanguageHeader = null): ServerRequestInterface
{
return new class($acceptLanguageHeader) implements ServerRequestInterface {
public function __construct(private null|string $acceptLanguageHeader) {}
public function __construct(private ?string $acceptLanguageHeader) {}

public function getServerParams(): array
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/AcceptNegotiatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public static function provideNegotiateCases(): iterable
private static function getRequest(?string $acceptHeader = null): ServerRequestInterface
{
return new class($acceptHeader) implements ServerRequestInterface {
public function __construct(private null|string $acceptHeader) {}
public function __construct(private ?string $acceptHeader) {}

public function getServerParams(): array
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/ContentTypeNegotiatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static function provideNegotiateCases(): iterable
private static function getRequest(?string $contentTypeHeader = null): ServerRequestInterface
{
return new class($contentTypeHeader) implements ServerRequestInterface {
public function __construct(private null|string $contentTypeHeader) {}
public function __construct(private ?string $contentTypeHeader) {}

public function getServerParams(): array
{
Expand Down

0 comments on commit 20840d2

Please sign in to comment.