Skip to content

Commit

Permalink
fixes #1060 : check on Ramsey UUID concrete class (#1061)
Browse files Browse the repository at this point in the history
fixes #1060
  • Loading branch information
jguittard authored Apr 28, 2024
1 parent 6dd9cce commit d8d93c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/etl/src/Flow/ETL/Row/Entry/Type/Uuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(string|\Ramsey\Uuid\UuidInterface|\Symfony\Component
{
if (\is_string($value)) {
try {
if (\class_exists(\Ramsey\Uuid\UuidInterface::class)) {
if (\class_exists(\Ramsey\Uuid\Uuid::class)) {
$this->value = (string) \Ramsey\Uuid\Uuid::fromString($value);
} elseif (\class_exists(\Symfony\Component\Uid\Uuid::class)) {
$this->value = \Symfony\Component\Uid\Uuid::fromString($value)->toRfc4122();
Expand Down

0 comments on commit d8d93c3

Please sign in to comment.