Skip to content
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

fix: property called default in ApiProperty has incorrect type (#6471) #6472

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

UnseenBook
Copy link
Contributor

The param annotation for default is set as string|null but should be no type, or mixed (like the example property)

Q A
Branch? current stable 3.3
Tickets Closes #6471
License MIT
Doc PR N.A.

In Metadata/ApiProperty.php the default property has PHP annotation param type as null|string, but that doesn't match the actual type (which is not set). I think it's best to set it to mixed, because that is the same type as the example property.

The param annotation for default is set as `string|null` but should be
no type, or mixed (like the example property)
@soyuka soyuka merged commit 71dbfb1 into api-platform:3.3 Jul 19, 2024
75 of 77 checks passed
@UnseenBook UnseenBook deleted the 3.3 branch July 22, 2024 09:09
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