From ab5986f50ded0086848f2f09ce1f47d7f5dce9d2 Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 5 Dec 2024 18:44:36 +0700 Subject: [PATCH 1/3] Fixed deprected code --- src/Manticoresearch/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Manticoresearch/Index.php b/src/Manticoresearch/Index.php index d0414887..1abdddfe 100755 --- a/src/Manticoresearch/Index.php +++ b/src/Manticoresearch/Index.php @@ -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::class', 'checkDocumentId']); $params = [ 'body' => [ 'index' => $this->index, From b08cfd0727c826b58b8d7c6f755dbb19f5493ffa Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 5 Dec 2024 19:16:21 +0700 Subject: [PATCH 2/3] Updated test matrix --- .github/workflows/ci.yml | 2 +- src/Manticoresearch/Index.php | 2 +- 2 files changed, 2 insertions(+), 2 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 1abdddfe..8067c4d5 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, From 8ca991f9474777255a5acdcc6b376e4796480c3d Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 5 Dec 2024 19:21:57 +0700 Subject: [PATCH 3/3] Fixed deprecated code --- src/Manticoresearch/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Manticoresearch/Index.php b/src/Manticoresearch/Index.php index 8067c4d5..cdecdb93 100755 --- a/src/Manticoresearch/Index.php +++ b/src/Manticoresearch/Index.php @@ -141,7 +141,7 @@ public function deleteDocumentsByIds(array $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,