Skip to content

Commit e878a14

Browse files
authored
Merge pull request #110 from phpDocumentor/php-8
php 8 support
2 parents 5fc5279 + 4e1c168 commit e878a14

File tree

6 files changed

+16
-22
lines changed

6 files changed

+16
-22
lines changed

.github/workflows/push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
- ubuntu-latest
8989
- windows-latest
9090
- macOS-latest
91-
php-versions: ['7.2', '7.3', '7.4']
91+
php-versions: ['7.2', '7.3', '7.4', '8.0']
9292
name: Unit tests for PHP version ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
9393
needs:
9494
- setup

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.2",
13+
"php": "^7.2 || ^8.0",
1414
"phpdocumentor/reflection-common": "^2.0"
1515
},
1616
"require-dev": {
17-
"ext-tokenizer": "^7.2"
17+
"ext-tokenizer": "*"
1818
},
1919
"autoload": {
2020
"psr-4": {

composer.lock

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Types/AggregatedType.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ abstract class AggregatedType implements Type, IteratorAggregate
3939
private $token;
4040

4141
/**
42-
* @param Type[] $types
43-
*
44-
* @phpstan-param list<Type> $types
42+
* @param array<Type> $types
4543
*/
4644
public function __construct(array $types, string $token)
4745
{

src/Types/Compound.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ final class Compound extends AggregatedType
2929
/**
3030
* Initializes a compound type (i.e. `string|int`) and tests if the provided types all implement the Type interface.
3131
*
32-
* @param Type[] $types
33-
*
34-
* @phpstan-param list<Type> $types
32+
* @param array<Type> $types
3533
*/
3634
public function __construct(array $types)
3735
{

src/Types/Intersection.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ final class Intersection extends AggregatedType
2828
/**
2929
* Initializes a intersection type (i.e. `\A&\B`) and tests if the provided types all implement the Type interface.
3030
*
31-
* @param Type[] $types
32-
*
33-
* @phpstan-param list<Type> $types
31+
* @param array<Type> $types
3432
*/
3533
public function __construct(array $types)
3634
{

0 commit comments

Comments
 (0)