Skip to content

Commit

Permalink
Merge pull request #1379 from ondrejmirtes/patch-1
Browse files Browse the repository at this point in the history
Fix `ReflectionEnum::newInstance()` return type
Ocramius authored Nov 19, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 83ff614 + a739e42 commit beb49d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reflection/Adapter/ReflectionEnum.php
Original file line number Diff line number Diff line change
@@ -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');
}

0 comments on commit beb49d9

Please sign in to comment.