Skip to content

Commit cd1afb9

Browse files
committed
Fix deprecation warnings
1 parent 018bf8d commit cd1afb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Model/Table/QueuedJobsTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ public function terminateProcess($pid, $sig = SIGTERM) {
648648
* @return string
649649
*/
650650
protected function _getDriverName() {
651-
$className = explode('\\', $this->connection()->config()['driver']);
651+
$className = explode('\\', $this->getConnection()->config()['driver']);
652652
$name = end($className);
653653

654654
return $name;

src/Shell/QueueShell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public function getOptionParser() {
383383
];
384384

385385
return parent::getOptionParser()
386-
->description($this->_getDescription())
386+
->setDescription($this->_getDescription())
387387
->addSubcommand('clean', [
388388
'help' => 'Remove old jobs (cleanup)',
389389
'parser' => $subcommandParser,

0 commit comments

Comments
 (0)