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

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet authored and github-actions[bot] committed Dec 20, 2023
1 parent 7633127 commit d8b898c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ComponentSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function getPropsFromComponent(): array
/**
* Maps a PHP type to a Vue type.
*/
public static function mapTypeToVueType(ReflectionType $type = null): array|string
public static function mapTypeToVueType(?ReflectionType $type = null): array|string
{
if ($type instanceof \ReflectionUnionType) {
return collect($type->getTypes())->map(fn ($type) => static::mapTypeToVueType($type))->all();
Expand Down

0 comments on commit d8b898c

Please sign in to comment.