mirror of
https://github.com/retailcrm/transparent-email.git
synced 2024-11-21 12:56:06 +03:00
Php version update
This commit is contained in:
parent
c2f7ea5767
commit
635a11fd5b
@ -9,6 +9,9 @@ php:
|
||||
- 7.1
|
||||
- 7.2
|
||||
- 7.3
|
||||
- 8.0
|
||||
- 8.1
|
||||
- 8.2
|
||||
|
||||
script:
|
||||
- ./vendor/bin/phpunit
|
||||
|
@ -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"
|
||||
},
|
||||
|
@ -10,18 +10,18 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,5 +9,5 @@ interface ServiceCollectorInterface extends \IteratorAggregate
|
||||
/**
|
||||
* @return ServiceInterface[]
|
||||
*/
|
||||
public function getIterator();
|
||||
}
|
||||
public function getIterator(): \Traversable;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user