mirror of
https://github.com/jbcr/SyliusElasticsearchPlugin.git
synced 2026-03-24 00:42:08 +01:00
Fix PHP 8.1 Iterator interface deprecation notice
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -14,7 +14,7 @@ on:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-18.04
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}"
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ final class SearchFacets implements Iterator
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function current()
|
||||
public function current(): mixed
|
||||
{
|
||||
return current($this->selectedBuckets);
|
||||
}
|
||||
@@ -48,15 +48,15 @@ final class SearchFacets implements Iterator
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function next()
|
||||
public function next(): void
|
||||
{
|
||||
return next($this->selectedBuckets);
|
||||
next($this->selectedBuckets);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function key()
|
||||
public function key(): mixed
|
||||
{
|
||||
return key($this->selectedBuckets);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ final class SearchFacets implements Iterator
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function rewind()
|
||||
public function rewind(): void
|
||||
{
|
||||
reset($this->selectedBuckets);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user