mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-19 15:45:43 +01:00
2da49992cc
[Downgrade] [PHP 7.2] Make DowngradeParameterTypeWideningRector always downgrade to phpdoc type (#390)
19 lines
421 B
PHP
19 lines
421 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\FileFormatter\Exception;
|
|
|
|
use InvalidArgumentException;
|
|
final class InvalidIndentStringException extends \InvalidArgumentException
|
|
{
|
|
/**
|
|
* @return $this
|
|
* @param string $string
|
|
*/
|
|
public static function fromString($string)
|
|
{
|
|
$message = \sprintf('This is not valid indentation "%s"', $string);
|
|
return new self($message);
|
|
}
|
|
}
|