Skip to content

Commit 9d42cfe

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Fix quotes in exception messages Fix quotes in exception messages Fix quotes in exception messages
2 parents e1cf24d + 52075fa commit 9d42cfe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Process.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ function ($m) use (&$env, &$varCache, &$varCount, $uid) {
15541554
private function requireProcessIsStarted(string $functionName)
15551555
{
15561556
if (!$this->isStarted()) {
1557-
throw new LogicException(sprintf('Process must be started before calling %s.', $functionName));
1557+
throw new LogicException(sprintf('Process must be started before calling "%s()".', $functionName));
15581558
}
15591559
}
15601560

@@ -1566,7 +1566,7 @@ private function requireProcessIsStarted(string $functionName)
15661566
private function requireProcessIsTerminated(string $functionName)
15671567
{
15681568
if (!$this->isTerminated()) {
1569-
throw new LogicException(sprintf('Process must be terminated before calling %s.', $functionName));
1569+
throw new LogicException(sprintf('Process must be terminated before calling "%s()".', $functionName));
15701570
}
15711571
}
15721572

Tests/ProcessTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ public function testMethodsThatNeedARunningProcess($method)
940940
$process = $this->getProcess('foo');
941941

942942
$this->expectException('Symfony\Component\Process\Exception\LogicException');
943-
$this->expectExceptionMessage(sprintf('Process must be started before calling %s.', $method));
943+
$this->expectExceptionMessage(sprintf('Process must be started before calling "%s()".', $method));
944944

945945
$process->{$method}();
946946
}

0 commit comments

Comments
 (0)