Skip to content

Commit a7da2c6

Browse files
authored
make:entity: Add return type to getId()
1 parent d49200d commit a7da2c6

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)