We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1802676 commit 3ab6b7eCopy full SHA for 3ab6b7e
examples/doctrine/src/UserEntity.php
@@ -38,7 +38,7 @@ public function __construct(string $name)
38
39
public function getId(): ?string
40
{
41
- return $this->id;
+ return $this->id === null ? null : (string)$this->id;
42
}
43
44
public function getName(): string
0 commit comments