From 1780dff34d756f924ed7bb4f1cd94a7f9685eb69 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 28 Apr 2020 20:23:58 +0200 Subject: [PATCH] [Validator] fix merge --- Tests/Violation/ConstraintViolationBuilderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Violation/ConstraintViolationBuilderTest.php b/Tests/Violation/ConstraintViolationBuilderTest.php index 07ef55cd8..b455441e3 100644 --- a/Tests/Violation/ConstraintViolationBuilderTest.php +++ b/Tests/Violation/ConstraintViolationBuilderTest.php @@ -70,10 +70,10 @@ public function testAppendMultiplePropertyPaths() public function testCodeCanBeSet() { $this->builder - ->setCode(5) + ->setCode('5') ->addViolation(); - $this->assertViolationEquals(new ConstraintViolation($this->messageTemplate, $this->messageTemplate, [], $this->root, 'data', 'foo', null, 5, new Valid())); + $this->assertViolationEquals(new ConstraintViolation($this->messageTemplate, $this->messageTemplate, [], $this->root, 'data', 'foo', null, '5', new Valid())); } public function testCauseCanBeSet()