upgrade to laravel 7 and set branch to v2

This commit is contained in:
2020-12-25 11:22:15 +00:00
parent 516105c492
commit 0ddd298350
4638 changed files with 132501 additions and 190226 deletions
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
/*
* This file is part of PharIo\Manifest.
*
@@ -7,50 +7,36 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PharIo\Manifest;
class RequirementCollectionIterator implements \Iterator {
/**
* @var Requirement[]
*/
private $requirements = [];
/** @var Requirement[] */
private $requirements;
/**
* @var int
*/
private $position;
/** @var int */
private $position = 0;
public function __construct(RequirementCollection $requirements) {
$this->requirements = $requirements->getRequirements();
}
public function rewind() {
public function rewind(): void {
$this->position = 0;
}
/**
* @return bool
*/
public function valid() {
return $this->position < count($this->requirements);
public function valid(): bool {
return $this->position < \count($this->requirements);
}
/**
* @return int
*/
public function key() {
public function key(): int {
return $this->position;
}
/**
* @return Requirement
*/
public function current() {
public function current(): Requirement {
return $this->requirements[$this->position];
}
public function next() {
public function next(): void {
$this->position++;
}
}