Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[Validator] Fixed constraint violation to string not handling array#10007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
eduardosoliv wants to merge1 commit intosymfony:masterfromeduardosoliv:validator-cviolation-tostring-handle-array
Closed

[Validator] Fixed constraint violation to string not handling array#10007

eduardosoliv wants to merge1 commit intosymfony:masterfromeduardosoliv:validator-cviolation-tostring-handle-array

Conversation

@eduardosoliv
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

This bug was introduced onPR-790 [2.3] [Validator] added comparison constraints and validators

Due to the change on root (to become the value):

-        $context = new ExecutionContext($this->createVisitor(null), $this->translator, $this->translationDomain);+        $context = new ExecutionContext($this->createVisitor($value), $this->translator, $this->translationDomain);

https://github.com/symfony/symfony/pull/790/files#diff-f4a93c3d8fcb85a24ea41c2a993e6d83R163

My change on:

-        $class = (string) (is_object($this->root) ? get_class($this->root) : $this->root);+        $class = is_object($this->root)+            ? get_class($this->root)+            : (is_array($this->root) ? 'Array' : (string) $this->root);+

Is inspired onTypeValidator

@webmozart
Copy link
Contributor

Fixed by#10123.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@eduardosoliv@webmozart

[8]ページ先頭

©2009-2025 Movatter.jp