Skip to content

Laravel 6 and lada-cache 4.0.2 problem #103

@ktsam89

Description

@ktsam89

I am on the middle of updating a laravel 5.8 project to laravel 6.
The issue I've been facing is the following composer error when i try to install lada-cache 4.0.2

Symfony\Component\Debug\Exception\FatalThrowableError  : Too few arguments to function Spiritix\LadaCache\Database\QueryBuilder::__construct(), 
4 passed in /home/ktsamis/myapp/vendor/spiritix/lada-cache/src/Spiritix/LadaCache/Database/Connection.php 
on line 35 and exactly 5 expected

  at /home/ktsamis/myapp/vendor/spiritix/lada-cache/src/Spiritix/LadaCache/Database/QueryBuilder.php:53
    49|      * @param  Processor           $processor
    50|      * @param  QueryHandler        $handler
    51|      * @param  Model               $model
    52|      */
  > 53|     public function __construct(
    54|         ConnectionInterface $connection,
    55|         Grammar $grammar,
    56|         Processor $processor,
    57|         QueryHandler $handler,

  Exception trace:

  1   Spiritix\LadaCache\Database\QueryBuilder::__construct()
      /home/ktsamis/myapp/vendor/spiritix/lada-cache/src/Spiritix/LadaCache/Database/Connection.php:35

  2   Spiritix\LadaCache\Database\Connection::query()
      /home/ktsamis/myapp/vendor/laravel/framework/src/Illuminate/Database/Connection.php:270

  Please use the argument -v to see more details.
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Has anyone encountered the same problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions