From d1c3f81b40e36db59507f32e19f7ea12d021b2cd Mon Sep 17 00:00:00 2001 From: Niels <10651054+Nielsvanpach@users.noreply.github.com> Date: Thu, 25 Nov 2021 12:28:31 +0100 Subject: [PATCH] change attribute --- src/Enum.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Enum.php b/src/Enum.php index 8cbd3c4..8e943b7 100644 --- a/src/Enum.php +++ b/src/Enum.php @@ -313,10 +313,7 @@ private static function arrayHasDuplicates(array $array): bool return count($array) > count(array_unique($array)); } - /** - * @return int|string - * #[\ReturnTypeWillChange] - */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->value;