diff --git a/mirzaev/arangodb/system/document.php b/mirzaev/arangodb/system/document.php index 35e30eb..a60eafd 100644 --- a/mirzaev/arangodb/system/document.php +++ b/mirzaev/arangodb/system/document.php @@ -32,7 +32,7 @@ class document * * @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']));