• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Bagisot issue on composer update

General Discussion
2
2
131
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    ajaykumar1984 last edited by 2 Jul 2024, 17:47

    I had installed bagisto recent version last week. Now I run composer update command. It gave me below error

    Declaration of Webkul\Core\Providers\VisitorServiceProvider::boot() must be compatible with Shetabit\Visitor\Provider\VisitorServiceProvider::boot(): void

    at packages\Webkul\Core\src\Providers\VisitorServiceProvider.php:16
    12▕ * Perform post-registration booting of services.
    13▕ *
    14▕ * @return void
    15▕ */
    ➜ 16▕ public function boot()
    17▕ {
    18▕ $this->registerMacroHelpers();
    19▕ }

    I did not modify anything but it is triggering the error. Kindly guide

    1 Reply Last reply Reply Quote 0
    • Rishabh-Webkul
      Rishabh-Webkul last edited by 5 Jul 2024, 06:43

      Hello @ajaykumar1984

      This issue is due to strict typing in the latest version we have done this in almost version.

      To resolve this error kindly make the changes like this

      https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Core/src/Providers/VisitorServiceProvider.php#L14

      Thanks & Regards..!!

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post