@@ -29,7 +29,7 @@ final class ApiProperty
29
29
* @param bool|null $required https://api-platform.com/docs/admin/validation/#client-side-validation
30
30
* @param bool|null $identifier https://api-platform.com/docs/core/identifiers/
31
31
* @param string|null $default
32
- * @param string|null $example https://api-platform.com/docs/core/openapi/#using-the-openapi-and-swagger-contexts
32
+ * @param mixed $example https://api-platform.com/docs/core/openapi/#using-the-openapi-and-swagger-contexts
33
33
* @param string|null $deprecationReason https://api-platform.com/docs/core/deprecations/#deprecating-resource-classes-operations-and-properties
34
34
* @param bool|null $fetchEager https://api-platform.com/docs/core/performance/#eager-loading
35
35
* @param array|null $jsonldContext https://api-platform.com/docs/core/extending-jsonld-context/#extending-json-ld-and-hydra-contexts
@@ -50,7 +50,7 @@ public function __construct(
50
50
private ?bool $ required = null ,
51
51
private ?bool $ identifier = null ,
52
52
private $ default = null ,
53
- private $ example = null ,
53
+ private mixed $ example = null ,
54
54
private ?string $ deprecationReason = null ,
55
55
private ?bool $ fetchable = null ,
56
56
private ?bool $ fetchEager = null ,
@@ -176,12 +176,12 @@ public function withDefault($default): self
176
176
return $ self ;
177
177
}
178
178
179
- public function getExample ()
179
+ public function getExample (): mixed
180
180
{
181
181
return $ this ->example ;
182
182
}
183
183
184
- public function withExample ($ example ): self
184
+ public function withExample (mixed $ example ): self
185
185
{
186
186
$ self = clone $ this ;
187
187
$ self ->example = $ example ;
0 commit comments