stan errors fixed
This commit is contained in:
@@ -247,3 +247,19 @@ function indexByValue(mixed $value, array $array): ?int
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert db type to php type
|
||||
*/
|
||||
function dbTypeToPhp(string $type): string
|
||||
{
|
||||
return match ($type) {
|
||||
'bigint' => 'int',
|
||||
'varchar' => 'string',
|
||||
'boolean' => 'bool',
|
||||
'timestamp(0) without time zone' => 'string',
|
||||
'json' => 'string',
|
||||
'jsonb' => 'string',
|
||||
default => 'string',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user