Skip to content

Commit e0a602b

Browse files
committed
Replace get_class() calls by ::class
1 parent e9f91a6 commit e0a602b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Console/Debug/CliRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(
2424
public readonly TraceableCommand $command,
2525
) {
2626
parent::__construct(
27-
attributes: ['_controller' => \get_class($command->command), '_virtual_type' => 'command'],
27+
attributes: ['_controller' => $command->command::class, '_virtual_type' => 'command'],
2828
server: $_SERVER,
2929
);
3030
}

src/Symfony/Component/DependencyInjection/Tests/Compiler/ServiceLocatorTagPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testProcessValue()
8383
$this->assertSame(CustomDefinition::class, $locator('bar')::class);
8484
$this->assertSame(CustomDefinition::class, $locator('baz')::class);
8585
$this->assertSame(CustomDefinition::class, $locator('some.service')::class);
86-
$this->assertSame(CustomDefinition::class, \get_class($locator('inlines.service')));
86+
$this->assertSame(CustomDefinition::class, $locator('inlines.service')::class);
8787
}
8888

8989
public function testServiceWithKeyOverwritesPreviousInheritedKey()

0 commit comments

Comments
 (0)