diff --git a/src/TypeFactory.php b/src/TypeFactory.php index c0f9b6c6d1aba90a4bd402c6cdf7a346c4b17f26..33655da70a3633e2890826809a2f0923e300df93 100644 --- a/src/TypeFactory.php +++ b/src/TypeFactory.php @@ -60,6 +60,11 @@ final class TypeFactory implements TypeFactoryInterface, \IteratorAggregate */ public function get(string $name): Type { + // API-platform semble avoir un problème avec les types utilisés dans un Trait. + if (strpos($name, '\UuidInterface') !== false) { + $name = 'Ramsey\Uuid\UuidInterface'; + } + if (!isset($this->types[$name])) { throw new TypeNotFoundException("unknown type ${name}"); }