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'); }