Fix PHP 8.1 Iterator interface deprecation notice

This commit is contained in:
Michał Pysiak
2023-04-04 06:42:30 +02:00
parent 956fb9166c
commit 978f3f17e0
2 changed files with 6 additions and 6 deletions

View File

@@ -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 }}"

View File

@@ -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);
}