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

Tag attribute case mismatch on sylius php attributes #17533

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

ehibes
Copy link
Contributor

@ehibes ehibes commented Dec 3, 2024

Q A
Branch? 1.13
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #17531
License MIT

The XmlFileLoader add extra service tag attribute name with _ when it contains -. Exemple :

<tag name="sylius.shipping_method_rule_checker" type="order_total_greater_than_or_equal"
     form-type="Sylius\Bundle\CoreBundle\Form\Type\Shipping\Rule\ChannelBasedOrderTotalGreaterThanOrEqualConfigurationType"/>

transformed to array of

[
    'form-type' => '...',
    'form_type' => '...',
]

https://github.com/symfony/dependency-injection/blob/7a379d8871f6a36f01559c14e11141cc02eb8dc8/Loader/XmlFileLoader.php#L695-L697

To fix this issue #17531, we need to replace the autoconfiguration from form-type to form_type.

@ehibes ehibes requested a review from a team as a code owner December 3, 2024 16:11
Copy link

github-actions bot commented Dec 3, 2024

Bunnyshell Preview Environment deleted

Available commands:

  • /bns:deploy to redeploy the environment

@GSadee GSadee added the Bug Confirmed bugs or bugfixes. label Dec 4, 2024
@GSadee GSadee merged commit 1e7dbf3 into Sylius:1.13 Dec 4, 2024
28 checks passed
@GSadee
Copy link
Member

GSadee commented Dec 4, 2024

Thank you @ehibes! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants