Replace get_class() calls by ::class

This commit is contained in:
Antoine Lamirault
2025-05-29 14:00:57 +02:00
parent 66c1440edf
commit 3191f587fd

View File

@@ -24,7 +24,7 @@ final class CliRequest extends Request
public readonly TraceableCommand $command,
) {
parent::__construct(
attributes: ['_controller' => \get_class($command->command), '_virtual_type' => 'command'],
attributes: ['_controller' => $command->command::class, '_virtual_type' => 'command'],
server: $_SERVER,
);
}