From d8b898c1446abcf045ed11747b03b6ee7c382e0c Mon Sep 17 00:00:00 2001 From: pascalbaljet Date: Wed, 20 Dec 2023 16:58:01 +0000 Subject: [PATCH] Fix styling --- src/ComponentSerializer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ComponentSerializer.php b/src/ComponentSerializer.php index 877dbbf..e27160c 100644 --- a/src/ComponentSerializer.php +++ b/src/ComponentSerializer.php @@ -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();