diff --git a/src/Format/Indent.php b/src/Format/Indent.php index 22550f47..e3775fe1 100644 --- a/src/Format/Indent.php +++ b/src/Format/Indent.php @@ -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); } /**