public static function fromName(string $name, ?Throwable $previous = null): DuplicateHelperException
    {
        $message = sprintf('Duplicate helper: %s', $name);

        return new static($message, $name, $previous);
    }
public static function fromName(string $name, ?Throwable $previous = null): DuplicateHelperException
    {
        $message = sprintf('Duplicate helper: %s', $name);

        return new static($message, $name, $previous);
    }
public static function fromName ( string $ name , ? Throwable $ previous = null ) : DuplicateHelperException { $ message = sprintf ( 'Duplicate helper: %s' , $ name ) ; return new static ( $ message , $ name , $ previous ) ; }
Creates exception for a given helper name

@param string         $name     The helper name
@param Throwable|null $previous The previous exception

@return DuplicateHelperException
Creates exception for a given helper name