We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b206ff commit de624d5Copy full SHA for de624d5
src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php
@@ -477,8 +477,9 @@ private function extractFromDefaultValue(string $class, string $property): ?arra
477
}
478
479
$type = \gettype($defaultValue);
480
+ $type = static::MAP_TYPES[$type] ?? $type;
481
- return [new Type(static::MAP_TYPES[$type] ?? $type)];
482
+ return [new Type($type, null, null, $type === Type::BUILTIN_TYPE_ARRAY)];
483
484
485
private function extractFromReflectionType(\ReflectionType $reflectionType, \ReflectionClass $declaringClass): array
0 commit comments