Skip to content

Commit

Permalink
make:entity: Add return type to getId()
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan authored Jun 21, 2018
1 parent d49200d commit a7da2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/skeleton/doctrine/Entity.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class <?= $class_name."\n" ?>
*/
private $id;

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

0 comments on commit a7da2c6

Please sign in to comment.