Skip to content

Commit ae88c4f

Browse files
committed
Another Stab at Symfony/process
1 parent 469f31e commit ae88c4f

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"phpstan/phpstan": "^0.12.88 || ^1.0.0 || ^2.0.0",
126126
"phpstan/phpstan-phpunit": "^1.0 || ^2.0",
127127
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0 || ^10.0",
128-
"symfony/process": "^4.4 || ^5.0 || ^6.0 || ^7.0",
128+
"symfony/process": "^4.4 || ^5.0 || ^6.0 || ^7.0 || 7.4.x-dev",
129129
"tecnickcom/tcpdf": "^6.5"
130130
},
131131
"suggest": {

tests/PhpWordTests/AbstractWebServerEmbedded.php

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

27-
/** @var int */
28-
protected static $wakeupDeprecatedVersion = 80500;
29-
3027
public static function setUpBeforeClass(): void
3128
{
3229
$commandLine = 'php -S localhost:8080 -t tests/PhpWordTests/_files';
3330

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-
}
31+
self::$httpServer = Process::fromShellCommandline($commandLine);
4032
self::$httpServer->start();
4133
while (!self::$httpServer->isRunning()) {
4234
usleep(1000);

0 commit comments

Comments
 (0)