RomanStruk / manticore-scout-engine

Manticore Engine for Laravel Scout
Other
32 stars 3 forks source link

Error in Cannot assign int to property RomanStruk\ManticoreScoutEngine\ManticoreEngine::$config of type array #28

Closed ankogit closed 1 year ago

ankogit commented 1 year ago

In config: 'paginate_max_matches' => 1000,

When I run php artisan manticore:index "App\Models...", I have:

 TypeError 

  Cannot assign int to property RomanStruk\ManticoreScoutEngine\ManticoreEngine::$config of type array

  at vendor/romanstruk/manticore-scout-engine/src/ManticoreEngine.php:23
     19▕ 
     20▕     public function __construct(array $config)
     21▕     {
     22▕         $this->manticore = new Client($config['connection']);
  ➜  23▕         $this->config = $config['paginate_max_matches'];
     24▕     }
     25▕ 
     26▕     /**
     27▕      * Update the given model in the index.
RomanStruk commented 1 year ago