Skip to content

Commit fb80242

Browse files
Defaulting the type to integer
1 parent d57f03e commit fb80242

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/SchemaHelpers.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ public static function guessFromReflectionType(ReflectionType $reflectionType):
1414
return Schema::integer();
1515
case 'bool':
1616
return Schema::boolean();
17-
}
17+
case 'string':
18+
return Schema::string();
19+
}
1820

19-
return Schema::string();
21+
return Schema::integer();
2022
}
2123
}

0 commit comments

Comments
 (0)