Skip to content

FIx usage of Regex validator constructor#2417

Merged
goetas merged 2 commits into
FriendsOfSymfony:3.xfrom
dev-craftec:bugfix/regex-validator-constructor-fix
Dec 20, 2025
Merged

FIx usage of Regex validator constructor#2417
goetas merged 2 commits into
FriendsOfSymfony:3.xfrom
dev-craftec:bugfix/regex-validator-constructor-fix

Conversation

@dev-craftec
Copy link
Copy Markdown
Contributor

@dev-craftec dev-craftec commented May 23, 2025

Fixes "Passing an array of options to configure the "FOS\RestBundle\Validator\Constraints\Regex" constraint is deprecated, use named arguments instead."

Link to issue: #2416

Fixes "Passing an array of options to configure the \"FOS\\RestBundle\\Validator\\Constraints\\Regex\" constraint is deprecated, use named arguments instead."
@dev-craftec dev-craftec marked this pull request as draft May 23, 2025 08:55
@dev-craftec dev-craftec marked this pull request as ready for review May 23, 2025 08:58
@W0rma
Copy link
Copy Markdown
Contributor

W0rma commented Jun 23, 2025

@goetas Can we get this merged and tagged?

tjveldhuizen added a commit to tjveldhuizen/FOSRestBundle that referenced this pull request Jul 23, 2025
tjveldhuizen added a commit to tjveldhuizen/FOSRestBundle that referenced this pull request Jul 23, 2025
tjveldhuizen added a commit to tjveldhuizen/FOSRestBundle that referenced this pull request Jul 23, 2025
tjveldhuizen added a commit to tjveldhuizen/FOSRestBundle that referenced this pull request Jul 23, 2025
@goetas goetas merged commit 6c246b7 into FriendsOfSymfony:3.x Dec 20, 2025
14 checks passed
@dev-craftec dev-craftec deleted the bugfix/regex-validator-constructor-fix branch December 22, 2025 08:59
deluxetom pushed a commit to sctr/FOSRestBundle that referenced this pull request Jan 15, 2026
* Update AbstractScalarParam.php

Fixes "Passing an array of options to configure the \"FOS\\RestBundle\\Validator\\Constraints\\Regex\" constraint is deprecated, use named arguments instead."

* Update AbstractScalarParam.php

Support php <8.0

* Fix deprecations in symfony/validator, including the fix in FriendsOfSymfony#2417

Fixes FriendsOfSymfony#2416

* Fix MimeTypeTest for Symfony 7.4

* Don't use deprecated `#[Route]` methods

* Switch to php for service configurations

Using xml is deprecated in symfony 7.4

* Fix usage of deprecated method Request::get()

* Fix deprecated usages of symfony/validator

* Add support for symfony 8

* Test against PHP 8.5

* Fix noop call of deprecated setAccessible() in PHP > 8.0

* Fix build status badge

* Remove broken SensioLabsInsight badge

* Remove outdated scrutinizer badges

* Allow usage with symfony/config v8

---------

Co-authored-by: dev-craftec <89782875+dev-craftec@users.noreply.github.com>
Co-authored-by: Thijs-jan Veldhuizen <thijs-jan.veldhuizen@nevobo.nl>
Co-authored-by: Alexander Schranz <alexander@sulu.io>
Co-authored-by: HypeMC <hypemc@gmail.com>
Co-authored-by: Asmir Mustafic <goetas@gmail.com>
Co-authored-by: W0rma <beck.worma@gmail.com>
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.

5 participants