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] ConstraintValidatorTestCase: add missing return value to mocked validate method calls#34458

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

Merged
chalasr merged 1 commit intosymfony:3.4fromogizanagi:validator_test_case_mock_return_value
Nov 23, 2019
Merged

[Validator] ConstraintValidatorTestCase: add missing return value to mocked validate method calls#34458

chalasr merged 1 commit intosymfony:3.4fromogizanagi:validator_test_case_mock_return_value
Nov 23, 2019

Conversation

@ogizanagi
Copy link
Contributor

@ogizanagiogizanagi commentedNov 19, 2019
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsN/A
LicenseMIT
Doc PRN/A

Spotted while working on#34456.
Not sure it should really qualify as a bugfix, but theContextualValidatorInterface::validate method is expected to return the instance. Ifchaining in a validator, trying to use this test methods would throw an error, trying to call a method onnull.

@chalasr
Copy link
Member

Thank you@ogizanagi.

chalasr pushed a commit that referenced this pull requestNov 23, 2019
…n value to mocked validate method calls (ogizanagi)This PR was merged into the 3.4 branch.Discussion----------[Validator] ConstraintValidatorTestCase: add missing return value to mocked validate method calls| Q             | A| ------------- | ---| Branch?       | 3.4 <!-- see below -->| Bug fix?      | yes| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets       | N/A <!-- prefix each issue number with "Fix #", if any -->| License       | MIT| Doc PR        | N/ASpotted while working on#34456.Not sure it should really qualify as a bugfix, but the `ContextualValidatorInterface::validate` method is expected to return the instance. If [chaining in a validator](https://github.com/symfony/symfony/pull/34456/files#diff-0e6e3106aa637d750d47e86a14cef8d4R43), trying to use this test methods would throw an error, trying to call a method on `null`.Commits-------8d1f326 [Validator] ConstraintValidatorTestCase: add missing return value to mocked validate method calls
@chalasrchalasr merged commit8d1f326 intosymfony:3.4Nov 23, 2019
@ogizanagiogizanagi deleted the validator_test_case_mock_return_value branchNovember 23, 2019 09:11
This was referencedDec 1, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof approved these changes

@xabbuhxabbuhxabbuh approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@ogizanagi@chalasr@stof@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp