Skip to content

Commit b13e103

Browse files
committed
PHP 8.4 pt2
1 parent bcec5b1 commit b13e103

10 files changed

Lines changed: 13 additions & 13 deletions

File tree

PHPUnit/Extensions/PhptTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function count()
115115
/**
116116
* Runs a test and collects its result in a TestResult instance.
117117
*
118-
* @param PHPUnit_Framework_TestResult $result
118+
* @param ?PHPUnit_Framework_TestResult $result
119119
* @param array $options
120120
* @return PHPUnit_Framework_TestResult
121121
*/

PHPUnit/Extensions/RepeatedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function count()
125125
* Runs the decorated test and collects the
126126
* result in a TestResult.
127127
*
128-
* @param PHPUnit_Framework_TestResult $result
128+
* @param ?PHPUnit_Framework_TestResult $result
129129
* @return PHPUnit_Framework_TestResult
130130
* @throws PHPUnit_Framework_Exception
131131
*/

PHPUnit/Extensions/TestDecorator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function getTest()
134134
* Runs the decorated test and collects the
135135
* result in a TestResult.
136136
*
137-
* @param PHPUnit_Framework_TestResult $result
137+
* @param ?PHPUnit_Framework_TestResult $result
138138
* @return PHPUnit_Framework_TestResult
139139
*/
140140
public function run(?PHPUnit_Framework_TestResult $result = NULL)

PHPUnit/Framework/Constraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function count()
123123
*
124124
* @param mixed $other Evaluated value or object.
125125
* @param string $description Additional information about the test
126-
* @param PHPUnit_Framework_ComparisonFailure $comparisonFailure
126+
* @param ?PHPUnit_Framework_ComparisonFailure $comparisonFailure
127127
* @throws PHPUnit_Framework_ExpectationFailedException
128128
*/
129129
protected function fail($other, $description, ?PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL)

PHPUnit/Framework/Error.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class PHPUnit_Framework_Error extends Exception
6363
* @param integer $code
6464
* @param string $file
6565
* @param integer $line
66-
* @param Exception $previous
66+
* @param ?Exception $previous
6767
*/
6868
public function __construct($message, $code, $file, $line, ?Exception $previous = NULL)
6969
{

PHPUnit/Framework/Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ interface PHPUnit_Framework_Test extends Countable
5959
/**
6060
* Runs a test and collects its result in a TestResult instance.
6161
*
62-
* @param PHPUnit_Framework_TestResult $result
62+
* @param ?PHPUnit_Framework_TestResult $result
6363
* @return PHPUnit_Framework_TestResult
6464
*/
6565
public function run(?PHPUnit_Framework_TestResult $result = NULL);

PHPUnit/Framework/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ public function hasFailed()
672672
* Runs the test case and collects the results in a TestResult object.
673673
* If no TestResult object is passed a new one will be created.
674674
*
675-
* @param PHPUnit_Framework_TestResult $result
675+
* @param ?PHPUnit_Framework_TestResult $result
676676
* @return PHPUnit_Framework_TestResult
677677
* @throws PHPUnit_Framework_Exception
678678
*/

PHPUnit/Framework/TestSuite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ public function getGroups()
617617
/**
618618
* Runs the tests and collects their result in a TestResult.
619619
*
620-
* @param PHPUnit_Framework_TestResult $result
620+
* @param ?PHPUnit_Framework_TestResult $result
621621
* @param mixed $filter
622622
* @param array $groups
623623
* @param array $excludeGroups

PHPUnit/TextUI/TestRunner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class PHPUnit_TextUI_TestRunner extends PHPUnit_Runner_BaseTestRunner
8282
protected static $versionStringPrinted = FALSE;
8383

8484
/**
85-
* @param PHPUnit_Runner_TestSuiteLoader $loader
86-
* @param PHP_CodeCoverage_Filter $filter
85+
* @param ?PHPUnit_Runner_TestSuiteLoader $loader
86+
* @param ?PHP_CodeCoverage_Filter $filter
8787
* @since Method available since Release 3.4.0
8888
*/
8989
public function __construct(?PHPUnit_Runner_TestSuiteLoader $loader = NULL, ?PHP_CodeCoverage_Filter $filter = NULL)

PHPUnit/Util/PHP.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ public static function factory()
154154
* Runs a single job (PHP code) using a separate PHP process.
155155
*
156156
* @param string $job
157-
* @param PHPUnit_Framework_TestCase $test
158-
* @param PHPUnit_Framework_TestResult $result
157+
* @param ?PHPUnit_Framework_TestCase $test
158+
* @param ?PHPUnit_Framework_TestResult $result
159159
* @return array|null
160160
* @throws PHPUnit_Framework_Exception
161161
*/
162-
public function runJob($job, PHPUnit_Framework_Test $test = NULL, PHPUnit_Framework_TestResult $result = NULL)
162+
public function runJob($job, ?PHPUnit_Framework_Test $test = NULL, ?PHPUnit_Framework_TestResult $result = NULL)
163163
{
164164
$process = proc_open(
165165
$this->getPhpBinary(),

0 commit comments

Comments
 (0)