@@ -25,7 +25,7 @@ public function __construct(
25
25
'Property `%s` is not an instance of `%s`. ' ,
26
26
// type name or class name
27
27
\is_object ($ property ) ? \get_class ($ property ) : \gettype ($ property ),
28
- Property::class
28
+ Property::class,
29
29
));
30
30
}
31
31
@@ -64,7 +64,7 @@ private function renderType(array $schema): array
64
64
if (!$ rf ->isEnum ()) {
65
65
throw new DefinitionException (\sprintf (
66
66
'Type `%s` must be a backed enum or class with properties. ' ,
67
- $ this ->type instanceof Type ? $ this ->type ->value : $ this ->type
67
+ $ this ->type instanceof Type ? $ this ->type ->value : $ this ->type ,
68
68
));
69
69
}
70
70
@@ -74,7 +74,7 @@ private function renderType(array $schema): array
74
74
if (!$ rf ->isBacked ()) {
75
75
throw new DefinitionException (\sprintf (
76
76
'Type `%s` is not a backed enum. ' ,
77
- $ this ->type instanceof Type ? $ this ->type ->value : $ this ->type
77
+ $ this ->type instanceof Type ? $ this ->type ->value : $ this ->type ,
78
78
));
79
79
}
80
80
@@ -90,7 +90,7 @@ private function renderType(array $schema): array
90
90
'bool ' => 'boolean ' ,
91
91
default => throw new DefinitionException (\sprintf (
92
92
'Type `%s` is not a backed enum. ' ,
93
- $ this ->type instanceof Type ? $ this ->type ->value : $ this ->type
93
+ $ this ->type instanceof Type ? $ this ->type ->value : $ this ->type ,
94
94
)),
95
95
};
96
96
0 commit comments