Skip to content

Commit

Permalink
Merge pull request #79 from kochen/allow-use-of-ramsey-uuid-4.0
Browse files Browse the repository at this point in the history
Allow use of ramsey/uuid ^4.0
  • Loading branch information
prolic authored Mar 27, 2020
2 parents 855852b + 5ccd220 commit 9319ca7
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 9319ca7

Please sign in to comment.