Skip to content

Commit 9e1589e

Browse files
committed
fixed a deprecation warning in tests
1 parent a86583d commit 9e1589e

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)