Исправление генерации data и metadata

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2022-10-23 05:25:59 +10:00
parent 3efe35fd30
commit b70d384053

View File

@ -32,7 +32,7 @@ class document
* *
* @return string|null Идентификатор * @return string|null Идентификатор
*/ */
public static function write(_connection $session, string $collection, ?array $data = null, ?array $metadata = null, bool $check = true, ?terminal $terminal = null): ?string public static function write(_connection $session, string $collection, ?array $data = [], ?array $metadata = [], bool $check = true, ?terminal $terminal = null): ?string
{ {
// Инициализация коллекции // Инициализация коллекции
collection::init($session, $collection, isset($data['_from'], $data['_to'])); collection::init($session, $collection, isset($data['_from'], $data['_to']));