Skip to content

🐛 fix message customisation for sf 8#70

Merged
garak merged 1 commit into
masterfrom
fix-constraint
May 18, 2026
Merged

🐛 fix message customisation for sf 8#70
garak merged 1 commit into
masterfrom
fix-constraint

Conversation

@garak
Copy link
Copy Markdown
Member

@garak garak commented May 1, 2026

Fix #69

Copilot AI review requested due to automatic review settings May 1, 2026 08:35
Copy link
Copy Markdown

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 PR aims to restore/customize the Recaptcha2 constraint message in a Symfony 8-compatible way (named arguments), as requested in issue #69, while also updating CI/static analysis configuration.

Changes:

  • Added a custom constructor to Recaptcha2 constraint intended to support message: named argument usage and deprecate array-based options.
  • Adjusted CI workflow to use ramsey/composer-install and updated PHPStan invocation.
  • Removed the PHPStan baseline include and made minor config formatting updates.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/Validator/Constraints/Recaptcha2.php Adds a constructor intended to support named-arg message customization and deprecate array options.
src/DependencyInjection/Configuration.php Removes an inline PHPStan ignore comment / minor formatting cleanup.
phpstan.neon Removes baseline include (now only sets paths/level).
composer.json Adds a conflict rule for google/recaptcha 1.5.0.
.github/workflows/build.yaml Updates CI steps (checkout version, PHPStan image tag pinning removed, new dependency installation approach).

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

Comment thread .github/workflows/build.yaml
Comment thread src/Validator/Constraints/Recaptcha2.php Outdated
Comment thread src/Validator/Constraints/Recaptcha2.php Outdated
Comment thread src/Validator/Constraints/Recaptcha2.php Outdated
Comment thread .github/workflows/build.yaml
Comment thread .github/workflows/build.yaml
@garak garak force-pushed the fix-constraint branch from 9694cab to 63687dc Compare May 1, 2026 08:38
@garak garak force-pushed the fix-constraint branch from 63687dc to 7b756ab Compare May 1, 2026 08:43
@garak garak merged commit f2a1f96 into master May 18, 2026
9 of 10 checks passed
@garak garak deleted the fix-constraint branch May 18, 2026 07:25
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.

Named arguments support in Recaptcha2 constraint

2 participants