You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Retrieve last error from libxml.
*
* @return \LibXMLError Returns a LibXMLError object if there is any error in the
* buffer, FALSE otherwise.
* @throws LibxmlException
*
*/
function libxml_get_last_error(): \LibXMLError
{
error_clear_last();
$safeResult = \libxml_get_last_error();
if ($safeResult === false) {
throw LibxmlException::createFromPhpError();
}
return $safeResult;
}
I guess something got mixed up here. libxml_get_last_error() returns false if no error occurred, but in the safe function this will trigger an Exception.
The text was updated successfully, but these errors were encountered:
I guess something got mixed up here.
libxml_get_last_error()
returns false if no error occurred, but in the safe function this will trigger an Exception.The text was updated successfully, but these errors were encountered: