We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc0bae commit fc9d69bCopy full SHA for fc9d69b
src/Symfony/Component/Validator/Tests/Constraints/WhenValidatorTest.php
@@ -104,7 +104,7 @@ public function testConstraintsAreExecutedWithNestedObject()
104
$this->expectValidateValue(0, $number->value, $constraints);
105
106
$this->validator->validate($number->value, new When([
107
- 'expression' => 'context.root.ok === true',
+ 'expression' => 'context.getRoot().ok === true',
108
'constraints' => $constraints,
109
]));
110
}
0 commit comments