Skip to content

Commit f6f0f9a

Browse files
authored
Merge pull request #880 from Vincz/0.12
0.12
2 parents f3b3557 + 76d527d commit f6f0f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config/Parser/AnnotationParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ private static function guessType(string $namespace, array $annotations): string
840840
{
841841
$columnAnnotation = self::getFirstAnnotationMatching($annotations, Column::class);
842842
if ($columnAnnotation) {
843-
$type = self::resolveTypeFromDoctrineType($columnAnnotation->type);
843+
$type = self::resolveTypeFromDoctrineType($columnAnnotation->type ?: 'string');
844844
$nullable = $columnAnnotation->nullable;
845845
if ($type) {
846846
return $nullable ? $type : \sprintf('%s!', $type);

0 commit comments

Comments
 (0)