Skip to content

Commit 432caaa

Browse files
committed
minor #215 make:entity: Add return type to getId() (gharlan)
This PR was merged into the 1.0-dev branch. Discussion ---------- make:entity: Add return type to getId() Commits ------- a7da2c6 make:entity: Add return type to getId()
2 parents 020c048 + a7da2c6 commit 432caaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/skeleton/doctrine/Entity.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class <?= $class_name."\n" ?>
2020
*/
2121
private $id;
2222

23-
public function getId()
23+
public function getId(): ?int
2424
{
2525
return $this->id;
2626
}

0 commit comments

Comments
 (0)