Php version update

This commit is contained in:
kruglov 2024-01-22 17:05:11 +03:00
parent c2f7ea5767
commit 635a11fd5b
4 changed files with 11 additions and 8 deletions

View File

@ -9,6 +9,9 @@ php:
- 7.1
- 7.2
- 7.3
- 8.0
- 8.1
- 8.2
script:
- ./vendor/bin/phpunit

View File

@ -3,11 +3,11 @@
"description": "Remove aliases from email and get primary email account",
"type": "library",
"require": {
"php": "^7.0.0",
"php": "^8.0.0",
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "6.5.14",
"phpunit/phpunit": "^9.0.0",
"satooshi/php-coveralls": "^1.0.1",
"codacy/coverage": "^1.0.3"
},

View File

@ -10,15 +10,15 @@ class ServiceCollector implements ServiceCollectorInterface
{
private $services = [];
public function addService(ServiceInterface $service)
public function addService(ServiceInterface $service): void
{
$this->services[] = $service;
}
/**
* @inheritdoc
* {@inheritdoc}
*/
public function getIterator()
public function getIterator(): \Traversable
{
foreach ($this->services as $service) {
yield $service;

View File

@ -9,5 +9,5 @@ interface ServiceCollectorInterface extends \IteratorAggregate
/**
* @return ServiceInterface[]
*/
public function getIterator();
public function getIterator(): \Traversable;
}