Skip to content

Commit 253f4b3

Browse files
authored
Merge pull request #9 from zf1s/Make_Php_8.1_Compatiable
2 parents c0bc7ab + 7bcaf94 commit 253f4b3

File tree

141 files changed

+9941
-46
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+9941
-46
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ on:
88

99
jobs:
1010
test:
11-
name: PHP:${{ matrix.php }} PHP_INVOKER:${{ toJSON(matrix.php_invoker) }} ALLOW_FAILURES:${{ toJSON(matrix.experimental) }} COVERAGE:${{ toJSON(matrix.coverage) }}
11+
name: PHP:${{ matrix.php }} php-invoker:${{ toJSON(matrix.php_invoker) }}${{ matrix.coverage && ' (with coverage)' || '' }}${{ matrix.experimental && ' (allowing failures - php version not supported yet)' || '' }}
1212
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
experimental: [false]
17-
coverage: [false]
1816
php:
1917
- "5.3"
2018
- "5.4"
@@ -24,32 +22,20 @@ jobs:
2422
- "7.1"
2523
- "7.2"
2624
- "7.3"
27-
php_invoker:
28-
- true
29-
- false
25+
- "8.0"
26+
- "8.1"
27+
- "8.2"
28+
php_invoker: [true, false]
29+
coverage: [false]
30+
experimental: [false]
3031
include:
31-
- php: "7.4"
32-
php_invoker: true
33-
coverage: true
32+
# run coverage only on PHP 7.4
3433
- php: "7.4"
3534
php_invoker: false
3635
coverage: true
37-
- php: "8.0"
38-
php_invoker: true
39-
experimental: false
40-
coverage: false
41-
- php: "8.0"
42-
php_invoker: false
43-
coverage: false
44-
experimental: false
45-
- php: "8.1"
36+
- php: "7.4"
4637
php_invoker: true
47-
experimental: true
48-
coverage: false
49-
- php: "8.1"
50-
php_invoker: false
51-
experimental: true
52-
coverage: false
38+
coverage: true
5339

5440
steps:
5541
- name: Checkout Code

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Tests/TextUI/*.log
1212
Tests/TextUI/*.out
1313
Tests/TextUI/*.php
1414
/bin
15-
/vendor
16-
/composer.lock
17-
/composer.phar
15+
vendor
16+
composer.lock
17+
composer.phar
1818
phpunit.xml
1919
cache.properties
2020
.idea

PHPUnit/Extensions/PhptTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public function __construct($filename, array $options = array())
106106
*
107107
* @return integer
108108
*/
109+
#[\ReturnTypeWillChange]
109110
public function count()
110111
{
111112
return 1;

PHPUnit/Extensions/RepeatedTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function __construct(PHPUnit_Framework_Test $test, $timesRepeat = 1, $fil
115115
*
116116
* @return integer
117117
*/
118+
#[\ReturnTypeWillChange]
118119
public function count()
119120
{
120121
return $this->timesRepeat * count($this->test);

PHPUnit/Extensions/TestDecorator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public function basicRun(PHPUnit_Framework_TestResult $result)
104104
*
105105
* @return integer
106106
*/
107+
#[\ReturnTypeWillChange]
107108
public function count()
108109
{
109110
return count($this->test);

PHPUnit/Framework/Constraint.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ protected function matches($other)
112112
* @return integer
113113
* @since Method available since Release 3.4.0
114114
*/
115+
#[\ReturnTypeWillChange]
115116
public function count()
116117
{
117118
return 1;

PHPUnit/Framework/Constraint/And.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ public function toString()
151151
* @return integer
152152
* @since Method available since Release 3.4.0
153153
*/
154+
#[\ReturnTypeWillChange]
154155
public function count()
155156
{
156157
$count = 0;

PHPUnit/Framework/Constraint/Composite.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public function evaluate($other, $description = '', $returnResult = FALSE)
107107
*
108108
* @return integer
109109
*/
110+
#[\ReturnTypeWillChange]
110111
public function count()
111112
{
112113
return count($this->innerConstraint);

PHPUnit/Framework/Constraint/IsAnything.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function toString()
9595
* @return integer
9696
* @since Method available since Release 3.5.0
9797
*/
98+
#[\ReturnTypeWillChange]
9899
public function count()
99100
{
100101
return 0;

PHPUnit/Framework/Constraint/Not.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ public function toString()
196196
* @return integer
197197
* @since Method available since Release 3.4.0
198198
*/
199+
#[\ReturnTypeWillChange]
199200
public function count()
200201
{
201202
return count($this->constraint);

0 commit comments

Comments
 (0)