From faf0bb4f95857bb59d95531e7b6efa7491946504 Mon Sep 17 00:00:00 2001 From: ghoshrahul Date: Wed, 8 Jan 2025 12:53:44 +0530 Subject: [PATCH] fix: bracket correction in readme (#1689) Co-authored-by: Rahul --- docs/reference/generator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/generator.md b/docs/reference/generator.md index 83867070b..baa953deb 100644 --- a/docs/reference/generator.md +++ b/docs/reference/generator.md @@ -64,7 +64,7 @@ $openapi = (new \OpenApi\Generator($logger)) ->setNamespaces(['My\\Annotations\\']) ->setAnalyser(new \OpenApi\Analysers\ReflectionAnalyser([new OpenApi\Analysers\DocBlockAnnotationFactory(), new OpenApi\Analysers\AttributeAnnotationFactory()])) ->setVersion(\OpenApi\Annotations\OpenApi::VERSION_3_0_0) - ->generate(['/path1/to/project', $finder], new \OpenApi\Analysis([], $context)), $validate); + ->generate(['/path1/to/project', $finder], new \OpenApi\Analysis([], $context), $validate); ``` `Aliases` and `namespaces` are additional options that allow to customize the parsing of docblocks.