Skip to content

Commit b757497

Browse files
committed
fixed
1 parent f7af415 commit b757497

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BackupTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function getConnection($name = null)
9999
public function getDriver(ConnectionInterface $connection = null)
100100
{
101101
$connection = $connection ?: $this->getConnection();
102-
$className = get_class_short_name(get_class($connection->getDriver()));
102+
$className = get_class_short_name($connection->getDriver());
103103
$driver = App::classname(sprintf('%s.%s', 'DatabaseBackup', $className), 'Driver');
104104
is_true_or_fail(
105105
$driver,

src/Console/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function execute(Arguments $args, ConsoleIo $io)
3636
$config = $this->getConnection()->config();
3737

3838
$io->out(__d('database_backup', 'Connection: {0}', $config['name']));
39-
$io->out(__d('database_backup', 'Driver: {0}', get_class_short_name(get_class($this->getConnection()->getDriver()))));
39+
$io->out(__d('database_backup', 'Driver: {0}', get_class_short_name($this->getConnection()->getDriver())));
4040
$io->hr();
4141

4242
return null;

0 commit comments

Comments
 (0)