Skip to content

Commit 33ba805

Browse files
committed
[4.3] Remove unused local variables
1 parent 4417d19 commit 33ba805

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/ConstraintViolationTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Validator\ConstraintViolation;
1616
use Symfony\Component\Validator\Tests\Fixtures\CustomArrayObject;
17-
use Symfony\Component\Validator\Tests\Fixtures\ToString;
1817

1918
class ConstraintViolationTest extends TestCase
2019
{
@@ -114,7 +113,7 @@ public function testToStringOmitsEmptyCodes()
114113
public function testMessageCannotBeArray()
115114
{
116115
$this->expectException(\TypeError::class);
117-
$violation = new ConstraintViolation(
116+
new ConstraintViolation(
118117
['cannot be an array'],
119118
'',
120119
[],
@@ -127,7 +126,7 @@ public function testMessageCannotBeArray()
127126
public function testMessageObjectMustBeStringable()
128127
{
129128
$this->expectException(\TypeError::class);
130-
$violation = new ConstraintViolation(
129+
new ConstraintViolation(
131130
new CustomArrayObject(),
132131
'',
133132
[],

0 commit comments

Comments
 (0)