We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ddd3616 + 62ebcbd commit b4be9cfCopy full SHA for b4be9cf
1 file changed
src/Format/Indent.php
@@ -35,13 +35,13 @@ private function __construct(string $value)
35
/**
36
* @throws Exception\InvalidIndentStringException
37
*/
38
- public static function fromString(string $string): self
+ public static function fromString(string $value): self
39
{
40
- if (1 !== \preg_match('/^( *|\t+)$/', $string)) {
41
- throw Exception\InvalidIndentStringException::fromString($string);
+ if (1 !== \preg_match('/^( *|\t+)$/', $value)) {
+ throw Exception\InvalidIndentStringException::fromString($value);
42
}
43
44
- return new self($string);
+ return new self($value);
45
46
47
0 commit comments