Skip to content

InConstraint should pass null instead of empty array to parent constructor#66

Merged
frankdekker merged 1 commit intomasterfrom
InConstraint-should-pass-null-to-parent
Mar 6, 2026
Merged

InConstraint should pass null instead of empty array to parent constructor#66
frankdekker merged 1 commit intomasterfrom
InConstraint-should-pass-null-to-parent

Conversation

@frankdekker
Copy link
Member

Fixes

User Deprecated: Since symfony/validator 7.4: Support for evaluating options in the base Constraint class is deprecated. Initialize properties in the constructor of DigitalRevolution\SymfonyValidationShorthand\Constraint\Type\InConstraint instead.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request addresses a deprecation warning introduced in Symfony 7.4 by modifying how the InConstraint class initializes its parent Constraint class. The change updates the first argument passed to parent::__construct() from an empty array [] to null, which is the correct way to indicate that no options should be evaluated by the base Constraint class.

Changes:

  • Updated InConstraint constructor to pass null instead of empty array to parent constructor

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@frankdekker frankdekker merged commit 6229473 into master Mar 6, 2026
30 checks passed
@frankdekker frankdekker deleted the InConstraint-should-pass-null-to-parent branch March 6, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants