Skip to content

Commit

Permalink
Merge pull request #13 from valantic/feature/enum-parser-fix
Browse files Browse the repository at this point in the history
enum parser fix
  • Loading branch information
limenet committed Apr 25, 2024
2 parents 6fa3365 + 66f4792 commit 6a93a28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Service/DataTypeParser/DtoParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function supports(\ReflectionProperty $reflectionProperty): bool
{
return
$reflectionProperty->getType() instanceof \ReflectionNamedType
&& !$reflectionProperty->getType()->isBuiltin();
&& !$reflectionProperty->getType()->isBuiltin()
&& !is_subclass_of($reflectionProperty->getType()->getName(), \UnitEnum::class);
}
}

0 comments on commit 6a93a28

Please sign in to comment.