stan errors fixed

This commit is contained in:
nurmuhammet committed 2025-03-16 01:34:49 +05:00
1 parent 821ec1fe47
commit 0b47fe694c
7 files changed
+131 -51

No files matched your search

+16
View File
@@ -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',
};
}