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
+7 -16
View File
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
/*
* This file is part of PharIo\Manifest.
*
@@ -7,37 +7,28 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PharIo\Manifest;
class AuthorCollection implements \Countable, \IteratorAggregate {
/**
* @var Author[]
*/
/** @var Author[] */
private $authors = [];
public function add(Author $author) {
public function add(Author $author): void {
$this->authors[] = $author;
}
/**
* @return Author[]
*/
public function getAuthors() {
public function getAuthors(): array {
return $this->authors;
}
/**
* @return int
*/
public function count() {
return count($this->authors);
public function count(): int {
return \count($this->authors);
}
/**
* @return AuthorCollectionIterator
*/
public function getIterator() {
public function getIterator(): AuthorCollectionIterator {
return new AuthorCollectionIterator($this);
}
}