From 27053c82156c2496a2e2c94c4c6601178278f703 Mon Sep 17 00:00:00 2001 From: Dalibor Date: Sat, 10 Mar 2018 21:15:49 +0100 Subject: [PATCH] fix deprecated callback call --- src/Kdyby/ElasticSearch/Diagnostics/Panel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kdyby/ElasticSearch/Diagnostics/Panel.php b/src/Kdyby/ElasticSearch/Diagnostics/Panel.php index eebcd36..112c8f0 100644 --- a/src/Kdyby/ElasticSearch/Diagnostics/Panel.php +++ b/src/Kdyby/ElasticSearch/Diagnostics/Panel.php @@ -244,8 +244,8 @@ public static function renderException($e = NULL) public function register(Kdyby\ElasticSearch\Client $client) { $this->client = $client; - $client->onSuccess[] = $this->success; - $client->onError[] = $this->failure; + $client->onSuccess[] = [$this, 'success']; + $client->onError[] = [$this, 'failure']; Debugger::getBar()->addPanel($this); }