From 9113b4ac02011b55a611b6f9f88f682d79148d4a Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Wed, 20 Mar 2024 14:01:45 +0300 Subject: [PATCH] fix --- tests/QueryTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/QueryTest.php b/tests/QueryTest.php index f7697fc4..1a502757 100644 --- a/tests/QueryTest.php +++ b/tests/QueryTest.php @@ -458,7 +458,8 @@ public function testFacets() { $connection = $this->getConnection(); - $sphinxVersion = $connection->createCommand("SHOW GLOBAL VARIABLES LIKE 'version'")->queryOne()['Value'] ?? ''; + $rawSphinxVersion = $connection->createCommand("SHOW GLOBAL VARIABLES LIKE 'version'")->queryOne(); + $sphinxVersion = isset($rawSphinxVersion['Value']) ? $rawSphinxVersion['Value'] : ''; $query = new Query(); $results = $query->from('yii2_test_article_index')