From c3000cb46d1cc0a5e4d1e98de32d81506cd1d783 Mon Sep 17 00:00:00 2001 From: James Hulse Date: Wed, 28 Aug 2024 15:18:04 +1200 Subject: [PATCH] Update EnumTransformer.php --- src/Transformers/EnumTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }