Skip to content

Conversation

@alexndlm
Copy link
Contributor

@alexndlm alexndlm commented Jul 2, 2025

Q A
Branch? 4.1
Tickets #7241
License MIT
Doc PR

Relates to #7184

@alexndlm alexndlm marked this pull request as draft July 2, 2025 15:18
@alexndlm alexndlm closed this Jul 2, 2025
@alexndlm alexndlm reopened this Jul 2, 2025
@alexndlm alexndlm marked this pull request as ready for review July 2, 2025 16:11
}

if (!$validationGroups instanceof GroupSequence) {
$validationGroups = (array) $validationGroups;
Copy link
Contributor

Choose a reason for hiding this comment

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

But passing array of groups is not the same as passing GroupSequence 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just a revert of changes made in #7184

This condition says - if $validationGroups is not an instance of GroupSequence, make it an array.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh right,read it wrong 🤦‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, yes ) Yesterday I did the same ))

@alexndlm alexndlm requested a review from norkunas July 3, 2025 06:26
@soyuka soyuka merged commit 3ed6f30 into api-platform:4.1 Jul 3, 2025
108 of 111 checks passed
@soyuka
Copy link
Member

soyuka commented Jul 3, 2025

Thanks @alexndlm !

private readonly ValidatorMetadataFactoryInterface $validatorMetadataFactory,
private readonly PropertyMetadataFactoryInterface $decorated,
private readonly iterable $restrictionsMetadata = [],
?ContainerInterface $container = null,
Copy link
Member

Choose a reason for hiding this comment

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

this is a bc but as it was tagged like a week ago and we revert it impacts should be negligible.

@binxiaoff
Copy link

Thank you @alexndlm !

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.

4 participants