Skip to content

fix(maker): use named arguments for validator constraints#1762

Closed
ozhantr wants to merge 0 commit into
symfony:1.xfrom
ozhantr:fix/maker-registration-form-validator-named-arguments
Closed

fix(maker): use named arguments for validator constraints#1762
ozhantr wants to merge 0 commit into
symfony:1.xfrom
ozhantr:fix/maker-registration-form-validator-named-arguments

Conversation

@ozhantr
Copy link
Copy Markdown

@ozhantr ozhantr commented Dec 23, 2025

Description

Symfony 8 no longer supports passing an array of options to validator
constraints such as IsTrue, NotBlank, and Length.

This PR updates the make:registration-form generator to use named
arguments when generating these constraints, preventing runtime errors
in newly generated forms on Symfony 8.

BC impact

None. This change only affects generated code.

Tests

Existing MakerBundle tests
Manual verification with Symfony 8

@ozhantr ozhantr closed this Dec 23, 2025
@ozhantr ozhantr deleted the fix/maker-registration-form-validator-named-arguments branch December 23, 2025 20:20
@ozhantr ozhantr restored the fix/maker-registration-form-validator-named-arguments branch December 23, 2025 20:33
@ozhantr ozhantr deleted the fix/maker-registration-form-validator-named-arguments branch December 23, 2025 20:33
@GromNaN
Copy link
Copy Markdown
Member

GromNaN commented Jan 7, 2026

Hi, I don't know what happened to your PR, there is no commit. I created #1767 for this issue.

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