@@ -80,7 +80,7 @@ |
||
| 80 | 80 | |
| 81 | 81 | private function formatUnionType(\ReflectionUnionType $type): string |
| 82 | 82 | { |
| 83 | - $types = array_map(fn (\ReflectionNamedType $type): string => $type->getName(), $type->getTypes()); |
|
| 83 | + $types = array_map(fn(\ReflectionNamedType $type): string => $type->getName(), $type->getTypes()); |
|
| 84 | 84 | |
| 85 | 85 | return implode('|', $types); |
| 86 | 86 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | |
| 75 | 75 | foreach ($metadata->getParameters() as $parameter) { |
| 76 | 76 | $reflectionType = $parameter->getType(); |
| 77 | - $rootPropertyName = ($attributes[$parameter->name] ?? null)?->getSerializedName() ?? $parameter->name; |
|
| 77 | + $rootPropertyName = ($attributes[$parameter->name] ?? null) ? ->getSerializedName() ?? $parameter->name; |
|
| 78 | 78 | |
| 79 | 79 | if (null === $reflectionType) { |
| 80 | 80 | continue; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | use function Symfony\Component\DependencyInjection\Loader\Configurator\service; |
| 23 | 23 | use function Symfony\Component\DependencyInjection\Loader\Configurator\tagged_iterator; |
| 24 | 24 | |
| 25 | -return static function (ContainerConfigurator $di): void { |
|
| 25 | +return static function(ContainerConfigurator $di): void { |
|
| 26 | 26 | $services = $di->services(); |
| 27 | 27 | |
| 28 | 28 | $services |
@@ -71,6 +71,6 @@ discard block |
||
| 71 | 71 | service('schema.class_metadata_factory') |
| 72 | 72 | ]) |
| 73 | 73 | ->tag('validator.constraint_validator') |
| 74 | - ->alias(SchemaValidator::class,'schema.validator') |
|
| 74 | + ->alias(SchemaValidator::class, 'schema.validator') |
|
| 75 | 75 | ; |
| 76 | 76 | }; |
| 77 | 77 | \ No newline at end of file |