Skip to content

Commit 3b01cee

Browse files
committed
fix "Error: Cannot use object of type Illuminate\Support\Facades\Config as array"
1 parent 631c0f8 commit 3b01cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Queue/Jobs/Job.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function fail($e = null)
204204
}
205205
}
206206

207-
$failedJobConnectionName = $this->container['config']['queue.failed.database'];
207+
$failedJobConnectionName = $this->container->get('config')->get('queue.failed.database');
208208

209209
// If the job times out and has an open database transaction on the same connection as
210210
// the failed jobs table, we need to rollback that transaction to ensure the failed job

0 commit comments

Comments
 (0)