Skip to content

Commit

Permalink
Allow use of ramsey/uuid ^4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kochen committed Mar 27, 2020
1 parent 855852b commit 5ccd220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"prefer-stable": true,
"require": {
"php": "^7.1.0",
"ramsey/uuid" : "^3.6.0",
"ramsey/uuid" : "^3.6.0 || ^4.0",
"beberlei/assert": "^2.7.1 || ^3.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Messaging/FQCNMessageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function createMessageFromArray(string $messageName, array $messageData):
}

if (! isset($messageData['uuid'])) {
$messageData['uuid'] = Uuid::uuid4();
$messageData['uuid'] = Uuid::uuid4()->toString();
}

if (! isset($messageData['created_at'])) {
Expand Down

0 comments on commit 5ccd220

Please sign in to comment.