Patch moved upstream

This commit is contained in:
Marco van 't Wout
2024-09-18 16:25:44 +02:00
parent 0d999769a6
commit 9d657a562b
2 changed files with 1 additions and 12 deletions

View File

@@ -109,7 +109,7 @@
"Fix PHP 7 compatibility": "https://yiisoft.github.io/phpunit-patches/phpunit_php7.patch",
"Fix PHP 8 compatibility": "https://yiisoft.github.io/phpunit-patches/phpunit_php8.patch",
"Fix PHP 8.1 compatibility": "https://yiisoft.github.io/phpunit-patches/phpunit_php81.patch",
"Fix PHP 8.3 compatibility": "tests/phpunit_php83.patch"
"Fix PHP 8.3 compatibility": "https://yiisoft.github.io/phpunit-patches/phpunit_php83.patch"
}
}
},

View File

@@ -1,11 +0,0 @@
--- a/src/Util/PHP/Template/TestCaseMethod.tpl.dist
+++ b/src/Util/PHP/Template/TestCaseMethod.tpl.dist
@@ -56,7 +56,7 @@
}
@rewind(STDOUT); /* @ as not every STDOUT target stream is rewindable */
- if ($stdout = stream_get_contents(STDOUT)) {
+ if ($stdout = @stream_get_contents(STDOUT)) {
$output = $stdout . $output;
}