Skip to content

Commit c42a20c

Browse files
keradusnicolas-grekas
authored andcommitted
chore: PHP CS Fixer fixes
1 parent 6a20779 commit c42a20c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/Argument/LazyClosureTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Tests\Argument;
1313

14-
use InvalidArgumentException;
1514
use PHPUnit\Framework\TestCase;
1615
use Symfony\Component\DependencyInjection\Argument\LazyClosure;
1716
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -23,7 +22,7 @@ public function testMagicGetThrows()
2322
{
2423
$closure = new LazyClosure(fn () => null);
2524

26-
$this->expectException(InvalidArgumentException::class);
25+
$this->expectException(\InvalidArgumentException::class);
2726
$this->expectExceptionMessage('Cannot read property "foo" from a lazy closure.');
2827

2928
$closure->foo;
@@ -34,7 +33,7 @@ public function testThrowsWhenNotUsingInterface()
3433
$this->expectException(\RuntimeException::class);
3534
$this->expectExceptionMessage('Cannot create adapter for service "foo" because "Symfony\Component\DependencyInjection\Tests\Argument\LazyClosureTest" is not an interface.');
3635

37-
LazyClosure::getCode('foo', [new \stdClass(), 'bar'], new Definition(LazyClosureTest::class), new ContainerBuilder(), 'foo');
36+
LazyClosure::getCode('foo', [new \stdClass(), 'bar'], new Definition(self::class), new ContainerBuilder(), 'foo');
3837
}
3938

4039
public function testThrowsOnNonFunctionalInterface()

0 commit comments

Comments
 (0)