Skip to content

Commit

Permalink
Add PHP 8.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Aug 8, 2024
1 parent ba22b52 commit f9b39e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Mapper/Tree/Shell.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function root(Type $type, mixed $value): self
return (new self($type))->withValue($value);
}

public function child(string $name, Type $type, Attributes $attributes = null): self
public function child(string $name, Type $type, ?Attributes $attributes = null): self
{
$instance = new self($type);
$instance->name = $name;
Expand Down
2 changes: 1 addition & 1 deletion src/Type/Types/ClassStringType.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class ClassStringType implements StringType, CompositeType

private string $signature;

public function __construct(ObjectType|UnionType $subType = null)
public function __construct(ObjectType|UnionType|null $subType = null)
{
if ($subType instanceof UnionType) {
foreach ($subType->types() as $type) {
Expand Down

0 comments on commit f9b39e6

Please sign in to comment.