Skip to content

Commit b008b2a

Browse files
committed
applied code review suggestions
1 parent 6cdc5e2 commit b008b2a

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/Symfony/Component/Process/Messenger/RunProcessFailedException.php renamed to src/Symfony/Component/Process/Exception/RunProcessFailedException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Component\Process\Messenger;
12+
namespace Symfony\Component\Process\Exception;
1313

14-
use Symfony\Component\Process\Exception\ProcessFailedException;
15-
use Symfony\Component\Process\Exception\RuntimeException;
14+
use Symfony\Component\Process\Messenger\RunProcessContext;
1615

1716
/**
1817
* @author Kevin Bond <kevinbond@gmail.com>

src/Symfony/Component/Process/Messenger/RunProcessContext.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ public function __construct(RunProcessMessage $message, Process $process)
3030
$this->output = $process->isOutputDisabled() ? null : $process->getOutput();
3131
$this->errorOutput = $process->isOutputDisabled() ? null : $process->getErrorOutput();
3232
}
33-
3433
}

src/Symfony/Component/Process/Messenger/RunProcessMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(
2121
public readonly ?string $cwd = null,
2222
public readonly ?array $env = null,
2323
public readonly mixed $input = null,
24-
public readonly ?float $timeout = 60,
24+
public readonly ?float $timeout = 60.0,
2525
) {
2626
}
2727

src/Symfony/Component/Process/Messenger/RunProcessMessageHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Process\Messenger;
1313

1414
use Symfony\Component\Process\Exception\ProcessFailedException;
15+
use Symfony\Component\Process\Exception\RunProcessFailedException;
1516
use Symfony\Component\Process\Process;
1617

1718
/**

src/Symfony/Component/Process/Tests/Messenger/RunProcessMessageHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Process\Tests\Messenger;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Process\Messenger\RunProcessFailedException;
15+
use Symfony\Component\Process\Exception\RunProcessFailedException;
1616
use Symfony\Component\Process\Messenger\RunProcessMessage;
1717
use Symfony\Component\Process\Messenger\RunProcessMessageHandler;
1818

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy