Skip to content

Commit 804e9e1

Browse files
committed
add parameter type declarations to private methods
1 parent 351d273 commit 804e9e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dotenv.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ private function skipEmptyLines()
372372
}
373373
}
374374

375-
private function resolveCommands($value)
375+
private function resolveCommands(string $value)
376376
{
377377
if (false === strpos($value, '$')) {
378378
return $value;
@@ -419,7 +419,7 @@ private function resolveCommands($value)
419419
}, $value);
420420
}
421421

422-
private function resolveVariables($value)
422+
private function resolveVariables(string $value)
423423
{
424424
if (false === strpos($value, '$')) {
425425
return $value;
@@ -471,13 +471,13 @@ private function resolveVariables($value)
471471
return $value;
472472
}
473473

474-
private function moveCursor($text)
474+
private function moveCursor(string $text)
475475
{
476476
$this->cursor += \strlen($text);
477477
$this->lineno += substr_count($text, "\n");
478478
}
479479

480-
private function createFormatException($message)
480+
private function createFormatException(string $message)
481481
{
482482
return new FormatException($message, new FormatExceptionContext($this->data, $this->path, $this->lineno, $this->cursor));
483483
}

0 commit comments

Comments
 (0)