rector/packages/FileFormatter/Exception/ParseIndentException.php
2021-05-10 22:23:08 +00:00

18 lines
393 B
PHP

<?php
declare (strict_types=1);
namespace Rector\FileFormatter\Exception;
use UnexpectedValueException;
final class ParseIndentException extends \UnexpectedValueException
{
/**
* @return $this
*/
public static function fromString(string $string)
{
$message = \sprintf('The content "%s" could not be parsed', $string);
return new self($message);
}
}