Skip to content

Commit e295833

Browse files
committed
Merge branch '5.0'
* 5.0: Fix quotes in exception messages Fix quotes in exception messages Fix quotes in exception messages Fix quotes in exception messages Fix quotes in exception messages
2 parents 5a64c37 + 9d42cfe commit e295833

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
@@ -1566,7 +1566,7 @@ function ($m) use (&$env, &$varCache, &$varCount, $uid) {
15661566
private function requireProcessIsStarted(string $functionName)
15671567
{
15681568
if (!$this->isStarted()) {
1569-
throw new LogicException(sprintf('Process must be started before calling %s.', $functionName));
1569+
throw new LogicException(sprintf('Process must be started before calling "%s()".', $functionName));
15701570
}
15711571
}
15721572

@@ -1578,7 +1578,7 @@ private function requireProcessIsStarted(string $functionName)
15781578
private function requireProcessIsTerminated(string $functionName)
15791579
{
15801580
if (!$this->isTerminated()) {
1581-
throw new LogicException(sprintf('Process must be terminated before calling %s.', $functionName));
1581+
throw new LogicException(sprintf('Process must be terminated before calling "%s()".', $functionName));
15821582
}
15831583
}
15841584

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)