Skip to content

Commit 4c164d4

Browse files
committed
added missing mysql types for doc block match
1 parent e082c78 commit 4c164d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Commands/ShowTableColumnsForDocBlockCommand.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,15 @@ private function getType($databaseType)
7676
case strpos($databaseType, 'int') !== false:
7777
return 'int';
7878

79-
case strpos($databaseType, 'timestamp') !== false:
8079
case strpos($databaseType, 'date') !== false:
80+
case strpos($databaseType, 'timestamp') !== false:
8181
return 'string|\Illuminate\Support\Carbon';
8282

83+
case strpos($databaseType, 'float') !== false:
84+
case strpos($databaseType, 'decimal') !== false:
85+
case strpos($databaseType, 'double') !== false:
86+
return 'float';
87+
8388
default:
8489
return $databaseType;
8590
}

0 commit comments

Comments
 (0)