diff --git a/src/Transformers/EnumTransformer.php b/src/Transformers/EnumTransformer.php index 0523d66..1872ad5 100644 --- a/src/Transformers/EnumTransformer.php +++ b/src/Transformers/EnumTransformer.php @@ -31,7 +31,7 @@ public function transform(ReflectionClass $class, string $name): ?TransformedTyp return null; } - if (empty($enum->getCases()) { + if (empty($enum->getCases())) { return null; }