Skip to content

Commit 469f31e

Browse files
committed
Php8.5 Will Need Unreleased Symfony/Process 7.3.4
1 parent ffc33ca commit 469f31e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/PhpWordTests/AbstractWebServerEmbedded.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,19 @@ abstract class AbstractWebServerEmbedded extends \PHPUnit\Framework\TestCase
2424
{
2525
private static $httpServer;
2626

27+
/** @var int */
28+
protected static $wakeupDeprecatedVersion = 80500;
29+
2730
public static function setUpBeforeClass(): void
2831
{
2932
$commandLine = 'php -S localhost:8080 -t tests/PhpWordTests/_files';
3033

31-
self::$httpServer = Process::fromShellCommandline($commandLine);
34+
// need Symfony/Process 7.3.4
35+
if (PHP_VERSION_ID < self::$wakeupDeprecatedVersion) {
36+
self::$httpServer = Process::fromShellCommandline($commandLine);
37+
} else {
38+
self::$httpServer = @Process::fromShellCommandline($commandLine);
39+
}
3240
self::$httpServer->start();
3341
while (!self::$httpServer->isRunning()) {
3442
usleep(1000);

0 commit comments

Comments
 (0)