diff --git a/src/TypesGenerator.php b/src/TypesGenerator.php
index <HASH>..<HASH> 100644
--- a/src/TypesGenerator.php
+++ b/src/TypesGenerator.php
@@ -296,7 +296,7 @@ class TypesGenerator
 
         // Second pass
         foreach ($classes as &$class) {
-            if ($class['parent'] && $class['parent'] !== 'Enum') {
+            if ($class['parent'] && 'Enum' !== $class['parent']) {
                 if (isset($classes[$class['parent']])) {
                     $classes[$class['parent']]['hasChild'] = true;
                     $class['parentHasConstructor'] = $classes[$class['parent']]['hasConstructor'];
chore: fix CS (#<I>)