From a3548d85df8ab8435134a79534f95da17c8c7505 Mon Sep 17 00:00:00 2001 From: Wilker Mesquita Date: Fri, 23 Aug 2024 10:31:03 -0300 Subject: [PATCH] [KDG] cast Uuid::uuid4() to string Signed-off-by: Wilker Mesquita --- composer.json | 2 +- src/Drivers/ElasticSearch.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 5eab77e..bb08b15 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ } ], "require": { - "php": ">=8.0", + "php": "^8.2", "owen-it/laravel-auditing": "^13.6", "elasticsearch/elasticsearch": "^8.*" }, diff --git a/src/Drivers/ElasticSearch.php b/src/Drivers/ElasticSearch.php index c8dfcc6..617fb4c 100644 --- a/src/Drivers/ElasticSearch.php +++ b/src/Drivers/ElasticSearch.php @@ -146,7 +146,7 @@ public function indexAuditDocument($model) $params = [ 'index' => $this->index, 'type' => $this->type, - 'id' => Uuid::uuid4(), + 'id' => (string) Uuid::uuid4(), 'body' => $model ];