Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a3548d8

Browse files
committed
[KDG] cast Uuid::uuid4() to string
Signed-off-by: Wilker Mesquita <wilker@kirschbaumdevelopment.com>
1 parent 3fc2d4f commit a3548d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
],
4141
"require": {
42-
"php": ">=8.0",
42+
"php": "^8.2",
4343
"owen-it/laravel-auditing": "^13.6",
4444
"elasticsearch/elasticsearch": "^8.*"
4545
},

src/Drivers/ElasticSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function indexAuditDocument($model)
146146
$params = [
147147
'index' => $this->index,
148148
'type' => $this->type,
149-
'id' => Uuid::uuid4(),
149+
'id' => (string) Uuid::uuid4(),
150150
'body' => $model
151151
];
152152

0 commit comments

Comments
 (0)