From a739e422024cff5b883418beb83c11773b1eac7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mirtes?= Date: Sun, 19 Nov 2023 14:54:06 +0100 Subject: [PATCH] Fix `ReflectionEnum::newInstance()` return type --- src/Reflection/Adapter/ReflectionEnum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Reflection/Adapter/ReflectionEnum.php b/src/Reflection/Adapter/ReflectionEnum.php index d2c9b5153..c02a88555 100644 --- a/src/Reflection/Adapter/ReflectionEnum.php +++ b/src/Reflection/Adapter/ReflectionEnum.php @@ -361,7 +361,7 @@ public function isInstance(object $object): bool return $this->betterReflectionEnum->isInstance($object); } - public function newInstance(mixed ...$args): self + public function newInstance(mixed ...$args): object { throw new Exception\NotImplemented('Not implemented'); }