Skip to content

Commit 16f6867

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Add missing dots at the end of exception messages
2 parents bf9166b + 3641a93 commit 16f6867

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

InputStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function write($input)
4545
return;
4646
}
4747
if ($this->isClosed()) {
48-
throw new RuntimeException(sprintf('%s is closed', static::class));
48+
throw new RuntimeException(sprintf('%s is closed.', static::class));
4949
}
5050
$this->input[] = ProcessUtils::validateInput(__METHOD__, $input);
5151
}

Pipes/AbstractPipes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected function write(): ?array
103103
} elseif (!isset($this->inputBuffer[0])) {
104104
if (!\is_string($input)) {
105105
if (!is_scalar($input)) {
106-
throw new InvalidArgumentException(sprintf('%s yielded a value of type "%s", but only scalars and stream resources are supported', \get_class($this->input), \gettype($input)));
106+
throw new InvalidArgumentException(sprintf('%s yielded a value of type "%s", but only scalars and stream resources are supported.', \get_class($this->input), \gettype($input)));
107107
}
108108
$input = (string) $input;
109109
}

Pipes/WindowsPipes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct($input, bool $haveReadSupport)
5757

5858
if (!$h = fopen($file.'.lock', 'w')) {
5959
restore_error_handler();
60-
throw new RuntimeException(sprintf('A temporary file could not be opened to write the process output: %s', $lastError));
60+
throw new RuntimeException(sprintf('A temporary file could not be opened to write the process output: %s.', $lastError));
6161
}
6262
if (!flock($h, LOCK_EX | LOCK_NB)) {
6363
continue 2;

Process.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public function mustRun(callable $callback = null, array $env = []): self
281281
public function start(callable $callback = null, array $env = [])
282282
{
283283
if ($this->isRunning()) {
284-
throw new RuntimeException('Process is already running');
284+
throw new RuntimeException('Process is already running.');
285285
}
286286

287287
$this->resetProcessData();
@@ -375,7 +375,7 @@ public function start(callable $callback = null, array $env = [])
375375
public function restart(callable $callback = null, array $env = []): self
376376
{
377377
if ($this->isRunning()) {
378-
throw new RuntimeException('Process is already running');
378+
throw new RuntimeException('Process is already running.');
379379
}
380380

381381
$process = clone $this;
@@ -408,7 +408,7 @@ public function wait(callable $callback = null)
408408
if (null !== $callback) {
409409
if (!$this->processPipes->haveReadSupport()) {
410410
$this->stop(0);
411-
throw new LogicException('Pass the callback to the "Process::start" method or call enableOutput to use a callback with "Process::wait"');
411+
throw new LogicException('Pass the callback to the "Process::start" method or call enableOutput to use a callback with "Process::wait".');
412412
}
413413
$this->callback = $this->buildCallback($callback);
414414
}

0 commit comments

Comments
 (0)