Skip to content

Commit 3ab6b7e

Browse files
committed
Fix small mistake in doctrine example
1 parent 1802676 commit 3ab6b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/doctrine/src/UserEntity.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(string $name)
3838

3939
public function getId(): ?string
4040
{
41-
return $this->id;
41+
return $this->id === null ? null : (string)$this->id;
4242
}
4343

4444
public function getName(): string

0 commit comments

Comments
 (0)