Skip to content

Fix generation of supportsNormalization #819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

lyrixx
Copy link
Contributor

@lyrixx lyrixx commented Jul 29, 2024

i have no idea 2


Real diff is in src/Component/OpenApiCommon/Generator/Normalizer/NormalizerGenerator.php

diff --git a/src/Component/OpenApiCommon/Generator/Normalizer/NormalizerGenerator.php b/src/Component/OpenApiCommon/Generator/Normalizer/NormalizerGenerator.php
index 534649e75..e37936524 100644
--- a/src/Component/OpenApiCommon/Generator/Normalizer/NormalizerGenerator.php
+++ b/src/Component/OpenApiCommon/Generator/Normalizer/NormalizerGenerator.php
@@ -77,7 +77,7 @@ trait NormalizerGenerator
                         new Expr\FuncCall(new Name('is_object'), [new Arg(new Expr\Variable('data'))]),
                         new Expr\BinaryOp\Identical(
                             new Expr\FuncCall(new Name('get_class'), [new Arg(new Expr\Variable('data'))]),
-                            new Expr\ClassConstFetch(new Name($modelFqdn), new Identifier('class'))
+                            new Expr\ClassConstFetch(new Name\FullyQualified($modelFqdn), new Identifier('class'))
                         )
                     )
                 ),

Copy link
Member

@Korbeil Korbeil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix ! 👌

@Korbeil Korbeil merged commit 7afa6e9 into janephp:next Jul 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants