Skip to content

Commit 9d27d32

Browse files
committed
fix: remove php 8.4 deprecation notices
1 parent 18a8e4a commit 9d27d32

File tree

20 files changed

+22
-22
lines changed

20 files changed

+22
-22
lines changed

src/Contracts/Spec/ResourceDocumentComplianceChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface ResourceDocumentComplianceChecker
2424
* @param ResourceId|string|null $id
2525
* @return $this
2626
*/
27-
public function mustSee(ResourceType|string $type, ResourceId|string $id = null): static;
27+
public function mustSee(ResourceType|string $type, ResourceId|string|null $id = null): static;
2828

2929
/**
3030
* Check whether the provided content passes compliance with the JSON:API spec.

src/Core/Auth/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function resolver(): callable
6464
public function __construct(
6565
private readonly ContainerResolver $container,
6666
private readonly SchemaContainer $schemas,
67-
callable $resolver = null
67+
?callable $resolver = null
6868
) {
6969
$this->resolver = $resolver ?? self::resolver();
7070
}

src/Core/Bus/Commands/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Result implements ResultContract
2929
* @param Payload|null $payload
3030
* @return self
3131
*/
32-
public static function ok(Payload $payload = null): self
32+
public static function ok(?Payload $payload = null): self
3333
{
3434
return new self(true, $payload ?? new Payload(null, false));
3535
}

src/Core/Http/Actions/AttachRelationship/AttachRelationshipActionInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(
4848
ResourceType $type,
4949
ResourceId $id,
5050
string $fieldName,
51-
object $model = null,
51+
?object $model = null,
5252
) {
5353
parent::__construct($request, $type);
5454
$this->id = $id;

src/Core/Http/Actions/Destroy/DestroyActionInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
Request $request,
4141
ResourceType $type,
4242
ResourceId $id,
43-
object $model = null,
43+
?object $model = null,
4444
) {
4545
parent::__construct($request, $type);
4646
$this->id = $id;

src/Core/Http/Actions/DetachRelationship/DetachRelationshipActionInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(
4848
ResourceType $type,
4949
ResourceId $id,
5050
string $fieldName,
51-
object $model = null,
51+
?object $model = null,
5252
) {
5353
parent::__construct($request, $type);
5454
$this->id = $id;

src/Core/Http/Actions/FetchOne/FetchOneActionInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
Request $request,
4141
ResourceType $type,
4242
ResourceId $id,
43-
object $model = null,
43+
?object $model = null,
4444
) {
4545
parent::__construct($request, $type);
4646
$this->id = $id;

src/Core/Http/Actions/FetchRelated/FetchRelatedActionInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(
4242
ResourceType $type,
4343
ResourceId $id,
4444
string $fieldName,
45-
object $model = null,
45+
?object $model = null,
4646
) {
4747
parent::__construct($request, $type);
4848
$this->id = $id;

src/Core/Http/Actions/FetchRelationship/FetchRelationshipActionInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(
4242
ResourceType $type,
4343
ResourceId $id,
4444
string $fieldName,
45-
object $model = null,
45+
?object $model = null,
4646
) {
4747
parent::__construct($request, $type);
4848
$this->id = $id;

src/Core/Http/Actions/Update/UpdateActionInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(
4646
Request $request,
4747
ResourceType $type,
4848
ResourceId $id,
49-
object $model = null,
49+
?object $model = null,
5050
) {
5151
parent::__construct($request, $type);
5252
$this->id = $id;

0 commit comments

Comments
 (0)