File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ protected function registerFailedJobServices()
5454 */
5555 protected function mongoFailedJobProvider (array $ config ): MongoFailedJobProvider
5656 {
57- if (! isset ($ config ['collection ' ]) && isset ($ config ['table ' ])) {
58- trigger_error ('Since mongodb/laravel-mongodb 4.4: Using "table " option for the queue is deprecated. Use "collection " instead. ' , E_USER_DEPRECATED );
59- $ config ['collection ' ] = $ config ['table ' ];
57+ if (! isset ($ config ['table ' ]) && isset ($ config ['collection ' ])) {
58+ trigger_error ('Since mongodb/laravel-mongodb 4.4: Using "collection " option for the queue is deprecated. Use "table " instead. ' , E_USER_DEPRECATED );
59+ $ config ['table ' ] = $ config ['collection ' ];
6060 }
6161
6262 return new MongoFailedJobProvider (
6363 $ this ->app ['db ' ],
6464 $ config ['database ' ] ?? null ,
65- $ config ['collection ' ] ?? 'failed_jobs ' ,
65+ $ config ['table ' ] ?? 'failed_jobs ' ,
6666 );
6767 }
6868}
You can’t perform that action at this time.
0 commit comments