stan errors fixed

This commit is contained in:
2025-03-16 01:34:49 +05:00
parent 821ec1fe47
commit 0b47fe694c
7 changed files with 131 additions and 51 deletions

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',
};
}