PHP error

Declaration of Engine\Search\Elasticsearch\Client::getIndex() should be compatible with Elastica\Client::getIndex($name)

/srv/www/apppicker.com/htdocs/vendor/tieste/phalcon-core/lib/Engine/Search/Elasticsearch/Client.php(16)

04  */
05 namespace Engine\Search\Elasticsearch;
06 
07 use Elastica\Client as ElCient;
08 
09 /**
10  * Class Type
11  *
12  * @category    Engine
13  * @package     Search
14  * @subcategory Elasticsearch
15  */
16 class Client extends ElCient implements
17     \Phalcon\Events\EventsAwareInterface,
18     \Phalcon\DI\InjectionAwareInterface
19 {
20     use \Engine\Tools\Traits\DIaware,
21         \Engine\Tools\Traits\EventsAware;
22 
23     /**
24      * Returns the index for the given connection
25      *
26      * @param  \Engine\Search\Elasticsearch\ModelAdapter $model
27      * @return \Engine\Search\Elasticsearch\Index Index for the given name
28      */

Stack Trace

#0
+
 /srv/www/apppicker.com/htdocs/vendor/composer/ClassLoader.php(444): include("/srv/www/apppicker.com/htdocs/vendor/tieste/phalcon-core/lib/Eng...")
439  *
440  * Prevents access to $this/self from included files.
441  */
442 function includeFile($file)
443 {
444     include $file;
445 }
#1
+
 /srv/www/apppicker.com/htdocs/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile("/srv/www/apppicker.com/htdocs/vendor/tieste/phalcon-core/lib/Eng...")
317      * @return bool|null True if loaded, null otherwise
318      */
319     public function loadClass($class)
320     {
321         if ($file = $this->findFile($class)) {
322             includeFile($file);
323 
324             return true;
325         }
326     }
327 
#3
+
 /srv/www/apppicker.com/htdocs/protected/components/PhalconEngine.php(110): spl_autoload_call("Engine\Search\Elasticsearch\Client")
105     {
106         $config = $this->_config->elastica->toArray();
107 
108         $di->set('elastic', function() use ($config) {
109 
110             $elastica = new \Engine\Search\Elasticsearch\Client($config);
111 
112             return $elastica;
113         });
114     }
115 
2024-03-19 00:05:35 nginx/1.20.1 Yii Framework/1.1.16