From ef17a1b81c7552333b8368d1610ecbb307431c5f Mon Sep 17 00:00:00 2001 From: Nick Sergeev <45552280+Nick-S-2018@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:14:04 +0700 Subject: [PATCH] Fixed deprected code (#223) * Fixed deprected code * Updated test matrix * Fixed deprecated code --------- Co-authored-by: nick --- .github/workflows/ci.yml | 2 +- src/Manticoresearch/Index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83ff15d1..b1fa0b23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: ['ubuntu-latest'] - php-version: ['7.4', '8.0', '8.1', '8.2'] + php-version: ['7.4', '8.0', '8.1', '8.2', '8.3'] phpunit-version: ['latest'] transport: ['', 'PhpHttp'] diff --git a/src/Manticoresearch/Index.php b/src/Manticoresearch/Index.php index d0414887..cdecdb93 100755 --- a/src/Manticoresearch/Index.php +++ b/src/Manticoresearch/Index.php @@ -59,7 +59,7 @@ public function getDocumentByIds($ids) { // Deduplicate and order the list static::checkIfList($ids); - array_walk($ids, [static::class, 'checkDocumentId']); + array_walk($ids, 'static::checkDocumentId'); $params = [ 'body' => [ 'index' => $this->index, @@ -141,7 +141,7 @@ public function deleteDocumentsByIds(array $ids) { // Deduplicate and order the list static::checkIfList($ids); - array_walk($ids, 'self::checkDocumentId'); + array_walk($ids, 'static::checkDocumentId'); $params = [ 'body' => [ 'index' => $this->index,