1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-07-01 12:40:50 +02:00
ttrss/vendor/thecodingmachine/safe/generated/xmlrpc.php

23 lines
487 B
PHP
Raw Normal View History

<?php
namespace Safe;
use Safe\Exceptions\XmlrpcException;
/**
* Sets xmlrpc type, base64 or datetime, for a PHP string value.
*
* @param string|\DateTime $value Value to set the type
* @param string $type 'base64' or 'datetime'
* @throws XmlrpcException
*
*/
function xmlrpc_set_type(&$value, string $type): void
{
error_clear_last();
$result = \xmlrpc_set_type($value, $type);
if ($result === false) {
throw XmlrpcException::createFromPhpError();
}
}