Skip to content

Commit 1780dff

Browse files
[Validator] fix merge
1 parent b829f1a commit 1780dff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Violation/ConstraintViolationBuilderTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ public function testAppendMultiplePropertyPaths()
7070
public function testCodeCanBeSet()
7171
{
7272
$this->builder
73-
->setCode(5)
73+
->setCode('5')
7474
->addViolation();
7575

76-
$this->assertViolationEquals(new ConstraintViolation($this->messageTemplate, $this->messageTemplate, [], $this->root, 'data', 'foo', null, 5, new Valid()));
76+
$this->assertViolationEquals(new ConstraintViolation($this->messageTemplate, $this->messageTemplate, [], $this->root, 'data', 'foo', null, '5', new Valid()));
7777
}
7878

7979
public function testCauseCanBeSet()

0 commit comments

Comments
 (0)