Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Update ComponentSerializer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Jan 3, 2024
1 parent dfd4865 commit f7c6912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ComponentSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public function getPropsFromComponent(): array
/**
* Maps a PHP type to a Vue type.
*/
public static function mapTypeToVueType(?ReflectionType $type = null): array|string|null
public static function mapTypeToVueType(ReflectionType $type = null): array|string|null
{
if ($type instanceof \ReflectionUnionType) {
$types = collect($type->getTypes())
Expand All @@ -388,7 +388,7 @@ public static function mapTypeToVueType(?ReflectionType $type = null): array|str
'string' => 'String',
'array' => 'Array',
'object' => 'Object',
'null' => 'Null',
'null' => 'null',
default => null,
};
}
Expand Down

0 comments on commit f7c6912

Please sign in to comment.