Compare commits

..

No commits in common. "master" and "v0.5.3" have entirely different histories.

4 changed files with 8 additions and 11 deletions

View file

@ -9,9 +9,6 @@ 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": "^8.0.0",
"php": "^7.0.0",
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.0.0",
"phpunit/phpunit": "6.5.14",
"satooshi/php-coveralls": "^1.0.1",
"codacy/coverage": "^1.0.3"
},

View file

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

View file

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