Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Form Validator error with PHP 8.0 due to more restrictive check #40726

Copy link
Copy link
Closed
@Carla-DW

Description

@Carla-DW
Issue body actions

Symfony version(s) affected: 4.4

Description
/form/Extension/Validator/Constraints/FormValidator.php at line 123: in some cases $constraints->groups does not exist. in_array() throws a fatal error in PHP8.0

How to reproduce

Possible Solution
Adding an extra condition if $constraint->groups exists (or is an array)

It is not clear to me how the validator works, so this may be due to form setup. Still, PHP7.4 accepted it PHP8.0 not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)DX = Developer eXperience (anything that improves the experience of using Symfony)FormStatus: Reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.