Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error, unexpected in registerBatchServices method #34422

Closed
iiviiahdisa opened this issue Sep 20, 2020 · 1 comment
Closed

syntax error, unexpected in registerBatchServices method #34422

iiviiahdisa opened this issue Sep 20, 2020 · 1 comment

Comments

@iiviiahdisa
Copy link

iiviiahdisa commented Sep 20, 2020

  • Laravel Version: 8.3.0
  • PHP Version: 7.4.4
  • Database Driver & Version: MySql 5.7.24

Description:

Hello.
When I call "php artisan" I see the following error due to the extra comma on line 51

Steps To Reproduce:

`

    $this->app->singleton(DatabaseBatchRepository::class, function ($app) {
        return new DatabaseBatchRepository(
            $app->make(BatchFactory::class),
            $app->make('db')->connection(config('queue.batching.database')),
            config('queue.batching.table', 'job_batches'),
        );
    });

`

@GrahamCampbell
Copy link
Member

This happens whenever your PHP version is less than 7.3.

@mfn mfn mentioned this issue Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants