From 010e38c2810846d5812a0ec91df98cddfdef8de4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sat, 28 Aug 2021 05:46:24 +0200 Subject: [PATCH] Fix strict types --- Entity/Snippet.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Entity/Snippet.php b/Entity/Snippet.php index 28c7c1c..4e9d406 100644 --- a/Entity/Snippet.php +++ b/Entity/Snippet.php @@ -207,11 +207,11 @@ class Snippet { /** * Set rate * - * @param string $rate + * @param int $rate * * @return Snippet */ - public function setRate(?string $rate): Snippet { + public function setRate(?int $rate): Snippet { $this->rate = $rate; return $this; @@ -220,9 +220,9 @@ class Snippet { /** * Get rate * - * @return string + * @return int */ - public function getRate(): ?string { + public function getRate(): ?int { return $this->rate; } @@ -233,7 +233,7 @@ class Snippet { * * @return User */ - public function setHat(bool $hat): Snippet { + public function setHat(?bool $hat): Snippet { $this->hat = $hat; return $this; @@ -244,7 +244,7 @@ class Snippet { * * @return bool */ - public function getHat(): bool { + public function getHat(): ?bool { return $this->hat; } /** -- 2.41.1