From dfc4a71eacf979e0b561ddeefac1de9f09e255a1 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/src/Symfony/Component/Validator/Tests/Violation/ConstraintViolationBuilderTest.php b/src/Symfony/Component/Validator/Tests/Violation/ConstraintViolationBuilderTest.php index 07ef55cd81..b455441e33 100644 --- a/src/Symfony/Component/Validator/Tests/Violation/ConstraintViolationBuilderTest.php +++ b/src/Symfony/Component/Validator/Tests/Violation/ConstraintViolationBuilderTest.php @@ -70,10 +70,10 @@ class ConstraintViolationBuilderTest extends TestCase 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()