Skip to content

Commit 3641a93

Browse files
committed
Add missing dots at the end of exception messages
1 parent b03b02d commit 3641a93

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
@@ -107,7 +107,7 @@ protected function write()
107107
} elseif (!isset($this->inputBuffer[0])) {
108108
if (!\is_string($input)) {
109109
if (!is_scalar($input)) {
110-
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)));
110+
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)));
111111
}
112112
$input = (string) $input;
113113
}

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, $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
@@ -260,7 +260,7 @@ public function mustRun(callable $callback = null/*, array $env = []*/)
260260
public function start(callable $callback = null/*, array $env = [*/)
261261
{
262262
if ($this->isRunning()) {
263-
throw new RuntimeException('Process is already running');
263+
throw new RuntimeException('Process is already running.');
264264
}
265265
if (2 <= \func_num_args()) {
266266
$env = func_get_arg(1);
@@ -375,7 +375,7 @@ public function start(callable $callback = null/*, array $env = [*/)
375375
public function restart(callable $callback = null/*, array $env = []*/)
376376
{
377377
if ($this->isRunning()) {
378-
throw new RuntimeException('Process is already running');
378+
throw new RuntimeException('Process is already running.');
379379
}
380380
$env = 1 < \func_num_args() ? func_get_arg(1) : null;
381381

@@ -409,7 +409,7 @@ public function wait(callable $callback = null)
409409
if (null !== $callback) {
410410
if (!$this->processPipes->haveReadSupport()) {
411411
$this->stop(0);
412-
throw new \LogicException('Pass the callback to the Process::start method or enableOutput to use a callback with Process::wait');
412+
throw new \LogicException('Pass the callback to the Process::start method or enableOutput to use a callback with Process::wait.');
413413
}
414414
$this->callback = $this->buildCallback($callback);
415415
}

0 commit comments

Comments
 (0)