diff --git a/Describer/ApiPlatformDescriber.php b/Describer/ApiPlatformDescriber.php index 4936c48..920e291 100644 --- a/Describer/ApiPlatformDescriber.php +++ b/Describer/ApiPlatformDescriber.php @@ -11,9 +11,8 @@ namespace Nelmio\ApiDocBundle\Describer; -use ApiPlatform\Documentation\DocumentationInterface; use ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer; -use ApiPlatform\OpenApi\Factory\OpenApiFactoryInterface; +use ApiPlatform\Documentation\DocumentationInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; final class ApiPlatformDescriber extends ExternalDocDescriber diff --git a/Tests/Functional/Entity/Dummy.php b/Tests/Functional/Entity/Dummy.php index e74c70f..ece0fb1 100644 --- a/Tests/Functional/Entity/Dummy.php +++ b/Tests/Functional/Entity/Dummy.php @@ -17,4 +17,4 @@ if (!class_exists(ApiProperty::class)) { class_alias(Dummy81::class, Dummy::class); } else { class_alias(Dummy71::class, Dummy::class); -} \ No newline at end of file +} diff --git a/Tests/Functional/Entity/Dummy81.php b/Tests/Functional/Entity/Dummy81.php index 2f24947..7b5387a 100644 --- a/Tests/Functional/Entity/Dummy81.php +++ b/Tests/Functional/Entity/Dummy81.php @@ -23,11 +23,11 @@ use Symfony\Component\Validator\Constraints as Assert; */ #[ ApiResource( - shortName: "Dummy", + shortName: 'Dummy', operations: [ - new Get(name: "get"), - new Get(name: "custom2", uriTemplate: "/foo"), - new Post(name: "custom", uriTemplate: "/foo"), + new Get(name: 'get'), + new Get(name: 'custom2', uriTemplate: '/foo'), + new Post(name: 'custom', uriTemplate: '/foo'), new GetCollection(), ], ) @@ -44,7 +44,7 @@ class Dummy81 * * @Assert\NotBlank */ - #[ApiProperty(iris: ["http://schema.org/name"])] + #[ApiProperty(iris: ['http://schema.org/name'])] private $name; public function getId(): int