mirror of
https://github.com/retailcrm/transparent-email.git
synced 2024-11-24 22:36:05 +03:00
Php version update
This commit is contained in:
parent
c2f7ea5767
commit
635a11fd5b
@ -9,6 +9,9 @@ php:
|
|||||||
- 7.1
|
- 7.1
|
||||||
- 7.2
|
- 7.2
|
||||||
- 7.3
|
- 7.3
|
||||||
|
- 8.0
|
||||||
|
- 8.1
|
||||||
|
- 8.2
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./vendor/bin/phpunit
|
- ./vendor/bin/phpunit
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
"description": "Remove aliases from email and get primary email account",
|
"description": "Remove aliases from email and get primary email account",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.0.0",
|
"php": "^8.0.0",
|
||||||
"ext-mbstring": "*"
|
"ext-mbstring": "*"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "6.5.14",
|
"phpunit/phpunit": "^9.0.0",
|
||||||
"satooshi/php-coveralls": "^1.0.1",
|
"satooshi/php-coveralls": "^1.0.1",
|
||||||
"codacy/coverage": "^1.0.3"
|
"codacy/coverage": "^1.0.3"
|
||||||
},
|
},
|
||||||
|
@ -10,15 +10,15 @@ class ServiceCollector implements ServiceCollectorInterface
|
|||||||
{
|
{
|
||||||
private $services = [];
|
private $services = [];
|
||||||
|
|
||||||
public function addService(ServiceInterface $service)
|
public function addService(ServiceInterface $service): void
|
||||||
{
|
{
|
||||||
$this->services[] = $service;
|
$this->services[] = $service;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritdoc
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator(): \Traversable
|
||||||
{
|
{
|
||||||
foreach ($this->services as $service) {
|
foreach ($this->services as $service) {
|
||||||
yield $service;
|
yield $service;
|
||||||
|
@ -9,5 +9,5 @@ interface ServiceCollectorInterface extends \IteratorAggregate
|
|||||||
/**
|
/**
|
||||||
* @return ServiceInterface[]
|
* @return ServiceInterface[]
|
||||||
*/
|
*/
|
||||||
public function getIterator();
|
public function getIterator(): \Traversable;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user