Skip to content

Commit

Permalink
[Validator] fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Apr 28, 2020
1 parent 49b74ba commit dfc4a71
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dfc4a71

Please sign in to comment.