rector/packages/FileFormatter/Exception/InvalidIndentStringException.php

18 lines
399 B
PHP
Raw Normal View History

<?php
declare (strict_types=1);
namespace Rector\FileFormatter\Exception;
use InvalidArgumentException;
final class InvalidIndentStringException extends \InvalidArgumentException
{
/**
* @return $this
*/
public static function fromString(string $string)
{
$message = \sprintf('This is not valid indentation "%s"', $string);
return new self($message);
}
}