Skip to content

Commit b4be9cf

Browse files
authored
Merge pull request #607 from ergebnis/fix/rename
Fix: Rename parameter
2 parents ddd3616 + 62ebcbd commit b4be9cf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Format/Indent.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ private function __construct(string $value)
3535
/**
3636
* @throws Exception\InvalidIndentStringException
3737
*/
38-
public static function fromString(string $string): self
38+
public static function fromString(string $value): self
3939
{
40-
if (1 !== \preg_match('/^( *|\t+)$/', $string)) {
41-
throw Exception\InvalidIndentStringException::fromString($string);
40+
if (1 !== \preg_match('/^( *|\t+)$/', $value)) {
41+
throw Exception\InvalidIndentStringException::fromString($value);
4242
}
4343

44-
return new self($string);
44+
return new self($value);
4545
}
4646

4747
/**

0 commit comments

Comments
 (0)