Skip to content

Commit b359263

Browse files
minor #19964 fixed a deprecation warning in tests (fabpot)
This PR was merged into the 3.2-dev branch. Discussion ---------- fixed a deprecation warning in tests | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 9e1589e fixed a deprecation warning in tests
2 parents 904f8ed + 9e1589e commit b359263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Tests/Constraints/ChoiceValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function testValidChoiceCallbackContextObjectMethod()
142142
// search $this for "objectMethodCallback"
143143
$this->setObject($this);
144144

145-
$constraint = new Choice(array('callback' => 'objectMethodCallback'));
145+
$constraint = new Choice(array('callback' => 'objectMethodCallback', 'strict' => true));
146146

147147
$this->validator->validate('bar', $constraint);
148148

0 commit comments

Comments
 (0)