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

+2-3
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

-1
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

+1-1
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

+1
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

+1-1
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)