8000 [Form] preg_match() expects parameter 2 to be string, object given · Issue #36734 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Form] preg_match() expects parameter 2 to be string, object given #36734
Closed
@Matts

Description

@Matts

Symfony version(s) affected: 3.4.39

Description
After upgrading to 3.4.40 I am receiving a preg_match error within our unit tests on TimeType. This issue has been introduced within #36020

Even though this issue would probably have been created due to assumptions in our code base, we would expect that the backwards compatibility promise would ensure the working of this code through patch updates.

How to reproduce
submit a form where the data of a TimeType is of type DateTme

Possible Solution
Make sure the second argument is a string when using preg_match or skip logic if data is an object instead of a string

Additional context
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0