diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 720a6c6..cba02f2 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -88,7 +88,7 @@ jobs: - ubuntu-latest - windows-latest - macOS-latest - php-versions: ['7.2', '7.3', '7.4'] + php-versions: ['7.2', '7.3', '7.4', '8.0'] name: Unit tests for PHP version ${{ matrix.php-versions }} on ${{ matrix.operating-system }} needs: - setup diff --git a/composer.json b/composer.json index 0f893c1..242ecbe 100644 --- a/composer.json +++ b/composer.json @@ -10,11 +10,11 @@ } ], "require": { - "php": "^7.2", + "php": "^7.2 || ^8.0", "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { - "ext-tokenizer": "^7.2" + "ext-tokenizer": "*" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 92a99b1..8fa8b87 100644 --- a/composer.lock +++ b/composer.lock @@ -4,29 +4,29 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e2fb01b305e7c8eb559a5c7320c39044", + "content-hash": "ee8aea1f755e1772266bc7e041d8ee5b", "packages": [ { "name": "phpdocumentor/reflection-common", - "version": "2.1.0", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "6568f4687e5b41b054365f9ae03fcb1ed5f2069b" + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/6568f4687e5b41b054365f9ae03fcb1ed5f2069b", - "reference": "6568f4687e5b41b054365f9ae03fcb1ed5f2069b", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", "shasum": "" }, "require": { - "php": ">=7.1" + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-2.x": "2.x-dev" } }, "autoload": { @@ -53,7 +53,7 @@ "reflection", "static analysis" ], - "time": "2020-04-27T09:25:28+00:00" + "time": "2020-06-27T09:03:43+00:00" } ], "packages-dev": [], @@ -63,9 +63,9 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^7.2" + "php": "^7.2 || ^8.0" }, "platform-dev": { - "ext-tokenizer": "^7.2" + "ext-tokenizer": "*" } } diff --git a/src/Types/AggregatedType.php b/src/Types/AggregatedType.php index cc3620b..9522295 100644 --- a/src/Types/AggregatedType.php +++ b/src/Types/AggregatedType.php @@ -39,9 +39,7 @@ abstract class AggregatedType implements Type, IteratorAggregate private $token; /** - * @param Type[] $types - * - * @phpstan-param list $types + * @param array $types */ public function __construct(array $types, string $token) { diff --git a/src/Types/Compound.php b/src/Types/Compound.php index 6cc8e47..ad426cc 100644 --- a/src/Types/Compound.php +++ b/src/Types/Compound.php @@ -29,9 +29,7 @@ final class Compound extends AggregatedType /** * Initializes a compound type (i.e. `string|int`) and tests if the provided types all implement the Type interface. * - * @param Type[] $types - * - * @phpstan-param list $types + * @param array $types */ public function __construct(array $types) { diff --git a/src/Types/Intersection.php b/src/Types/Intersection.php index dc69d83..ced37b6 100644 --- a/src/Types/Intersection.php +++ b/src/Types/Intersection.php @@ -28,9 +28,7 @@ final class Intersection extends AggregatedType /** * Initializes a intersection type (i.e. `\A&\B`) and tests if the provided types all implement the Type interface. * - * @param Type[] $types - * - * @phpstan-param list $types + * @param array $types */ public function __construct(array $types) {