Skip to content

[Serializer] Call to undefined function is_mixed() #57549

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

Closed
jkatruska opened this issue Jun 27, 2024 · 1 comment
Closed

[Serializer] Call to undefined function is_mixed() #57549

jkatruska opened this issue Jun 27, 2024 · 1 comment

Comments

@jkatruska
Copy link

Symfony version(s) affected

7.1.1

Description

When I have simple DTO with property that has data type mixed

class MixedTypeConstructorDto
{
    public function __construct(
        //phpcs:ignore SlevomatCodingStandard.Classes.RequireSingleLineMethodSignature.RequiredSingleLineSignature
        #[Groups(["api"])]
        public mixed $mixed,
    ) {
    }
}

deserialization is failing on call to undefined function is_mixed. I can see this is already fixed in https://github.com/symfony/serializer/blob/7.1/Normalizer/AbstractObjectNormalizer.php but no new version was released so can we please release it?

How to reproduce

Deserialize anything to class with mixed property

Possible Solution

No response

Additional Context

No response

@derrabus
Copy link
Member

Duplicate of #57314.

so can we please release it?

We will. Use a dev snapshot in the meantime.

@derrabus derrabus closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2024
@symfony symfony locked as spam and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants