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