diff --git a/src/db/connector/Pgsql.php b/src/db/connector/Pgsql.php index 3779c965..023a886f 100644 --- a/src/db/connector/Pgsql.php +++ b/src/db/connector/Pgsql.php @@ -75,7 +75,7 @@ public function getFields(string $tableName): array 'notnull' => (bool) ('' !== $val['null']), 'default' => $val['default'], 'primary' => !empty($val['key']), - 'autoinc' => str_starts_with($val['extra'], 'nextval('), + 'autoinc' => str_starts_with((string) $val['extra'], 'nextval('), ]; } }