Skip to content

Commit

Permalink
fix null id
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Oct 20, 2022
1 parent 7722f4e commit b43cd10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Services/Concerns/HasId.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ trait HasId
private ?int $id = null;

/**
* @param int $id
* @param ?int $id
* @return $this
*/
public function id(int $id): static
public function id(?int $id): static
{
$this->id = $id;
return $this;
Expand Down

0 comments on commit b43cd10

Please sign in to comment.