Skip to content

Commit

Permalink
Fix: Persistent->getUuid() has different return type when persistent
Browse files Browse the repository at this point in the history
  • Loading branch information
undecaf committed Jun 20, 2020
1 parent 35351ad commit 1f1496d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Entity/Persistent.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Persistent
/**
* The internal primary identity key which is unique, too.
*
* @var UuidInterface
* @var string
*
* @ORM\Column(type="guid", unique=true)
*/
Expand All @@ -43,15 +43,15 @@ class Persistent
*/
public function initUuid(): void
{
$this->uuid = Uuid::uuid4();
$this->uuid = Uuid::uuid4()->toString();
}

public function getId(): int
{
return $this->id;
}

public function getUuid(): UuidInterface
public function getUuid(): string
{
return $this->uuid;
}
Expand Down

0 comments on commit 1f1496d

Please sign in to comment.