Skip to content

Commit

Permalink
Merge pull request #607 from ergebnis/fix/rename
Browse files Browse the repository at this point in the history
Fix: Rename parameter
  • Loading branch information
localheinz committed Dec 29, 2021
2 parents ddd3616 + 62ebcbd commit b4be9cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Format/Indent.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ private function __construct(string $value)
/**
* @throws Exception\InvalidIndentStringException
*/
public static function fromString(string $string): self
public static function fromString(string $value): self
{
if (1 !== \preg_match('/^( *|\t+)$/', $string)) {
throw Exception\InvalidIndentStringException::fromString($string);
if (1 !== \preg_match('/^( *|\t+)$/', $value)) {
throw Exception\InvalidIndentStringException::fromString($value);
}

return new self($string);
return new self($value);
}

/**
Expand Down

0 comments on commit b4be9cf

Please sign in to comment.