mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-15 05:15:04 +01:00
3c8f8a03d6
[DowngradePhp80] Skip remove self on DowngradeStaticTypeDeclarationRector (#721)
24 lines
537 B
PHP
24 lines
537 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\FileFormatter\Exception;
|
|
|
|
use InvalidArgumentException;
|
|
final class InvalidNewLineStringException extends \InvalidArgumentException
|
|
{
|
|
/**
|
|
* @param string $string
|
|
*/
|
|
public static function fromString($string) : self
|
|
{
|
|
return new self(\sprintf('"%s" is not a valid new-line character sequence.', $string));
|
|
}
|
|
/**
|
|
* @param string $message
|
|
*/
|
|
public static function create($message) : self
|
|
{
|
|
return new self($message);
|
|
}
|
|
}
|