Skip to content

Commit

Permalink
Fixed deprected code (#223)
Browse files Browse the repository at this point in the history
* Fixed deprected code

* Updated test matrix

* Fixed deprecated code

---------

Co-authored-by: nick <[email protected]>
  • Loading branch information
Nick-S-2018 and nick authored Dec 17, 2024
1 parent 2692878 commit ef17a1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down
4 changes: 2 additions & 2 deletions src/Manticoresearch/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ef17a1b

Please sign in to comment.