Skip to content

Commit 8ac0c49

Browse files
authored
Merge pull request #208 from clue-labs/php8.1
Support PHP 8.1 release
2 parents 9084447 + 3e02785 commit 8ac0c49

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
php:
13+
- 8.1
1314
- 8.0
1415
- 7.4
1516
- 7.3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
119119
This project aims to run on any platform and thus does not require any PHP
120120
extensions and supports running on legacy PHP 5.3 through current PHP 8+ and
121121
HHVM.
122-
It's *highly recommended to use PHP 7+* for this project.
122+
It's *highly recommended to use the latest supported PHP version* for this project.
123123

124124
You may also want to install some of the [additional components](#components).
125125
A list of all official components can be found in the [graphp project](https://github.com/graphp).

phpunit.xml.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
7+
cacheResult="false"
78
colors="true"
8-
cacheResult="false">
9+
convertDeprecationsToExceptions="true">
910
<testsuites>
1011
<testsuite name="Graph test suite">
1112
<directory>./tests/</directory>

src/Set/Edges.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ public function getVector()
383383
* @return int
384384
* @see self::isEmpty()
385385
*/
386+
#[\ReturnTypeWillChange]
386387
public function count()
387388
{
388389
return count($this->edges);
@@ -409,6 +410,7 @@ public function isEmpty()
409410
*
410411
* @return \IteratorIterator
411412
*/
413+
#[\ReturnTypeWillChange]
412414
public function getIterator()
413415
{
414416
return new \IteratorIterator(new \ArrayIterator($this->edges));

src/Set/Vertices.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ public function getVector()
411411
* @return int
412412
* @see self::isEmpty()
413413
*/
414+
#[\ReturnTypeWillChange]
414415
public function count()
415416
{
416417
return count($this->vertices);
@@ -448,6 +449,7 @@ public function hasDuplicates()
448449
*
449450
* @return \IteratorIterator
450451
*/
452+
#[\ReturnTypeWillChange]
451453
public function getIterator()
452454
{
453455
return new \IteratorIterator(new \ArrayIterator($this->vertices));

0 commit comments

Comments
 (0)