Skip to content

Commit 5be163a

Browse files
Merge branch '4.3' into 4.4
* 4.3: [4.3] Remove unused local variables
2 parents fa73e5f + 33ba805 commit 5be163a

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
{
@@ -134,7 +133,7 @@ public function testMessageCanBeStringableObject()
134133
public function testMessageCannotBeArray()
135134
{
136135
$this->expectException(\TypeError::class);
137-
$violation = new ConstraintViolation(
136+
new ConstraintViolation(
138137
['cannot be an array'],
139138
'',
140139
[],
@@ -147,7 +146,7 @@ public function testMessageCannotBeArray()
147146
public function testMessageObjectMustBeStringable()
148147
{
149148
$this->expectException(\TypeError::class);
150-
$violation = new ConstraintViolation(
149+
new ConstraintViolation(
151150
new CustomArrayObject(),
152151
'',
153152
[],

0 commit comments

Comments
 (0)