From b43cd10b0f663eef99f0f05719c47fe57387c2d1 Mon Sep 17 00:00:00 2001 From: 3x1 Date: Thu, 20 Oct 2022 12:11:12 +0200 Subject: [PATCH] fix null id --- Services/Concerns/HasId.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/Concerns/HasId.php b/Services/Concerns/HasId.php index 90f09e6..2e81a8a 100644 --- a/Services/Concerns/HasId.php +++ b/Services/Concerns/HasId.php @@ -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;