Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pricebinc's avatar

spark release v3.0.5 always install framework 5.2, boot error appears.

No matter what I do:

  • install laravel-installer version 1.3.4
  • download last release v3.0.5 from spark.
  • check if laravel -V is = LARAVEL INSTALLER 1.3.4

every time I run spark new project-name laravel framework 5.2 is installed. Consequently Boot error is displayed when I run the project in localhost. The complete error is:

ErrorException in EventServiceProvider.php line 7: Declaration of App\Providers\EventServiceProvider::boot() should be compatible with Illuminate\Foundation\Support\Providers\EventServiceProvider::boot(Illuminate\Contracts\Events\Dispatcher $events)

questions:

  • anyone knows what im doing wrong?
  • anyone knows a way to force spark installer to use a framework version like when we run composer create-project laravel/laravel blog "5.3.*". Something like spark new project-name "5.3"

thanks.

0 likes
1 reply
ejdelmonico's avatar

@pricebinc Have you checked that you have the latest Laravel-Spark installer? If you don't have 1.1.1, then it will install 5.2 every time you run it.

Please or to participate in this conversation.