src/mako/error/handlers/web/ProductionHandler.php
protected function getExceptionAsXml(Throwable $exception): string
	{
		$details = $this->getStatusCodeAndMessage($exception);

		$xml = simplexml_load_string("<?xml version='1.0' encoding='utf-8'?><error />");

		$xml->addChild('code', $details['code']);

		$xml->addChild('message', $details['message']);

		return $xml->asXML();
	}
protected function getExceptionAsXml(Throwable $exception): string
	{
		$details = $this->getStatusCodeAndMessage($exception);

		$xml = simplexml_load_string("<?xml version='1.0' encoding='utf-8'?><error />");

		$xml->addChild('code', $details['code']);

		$xml->addChild('message', $details['message']);

		return $xml->asXML();
	}
protected function getExceptionAsXml ( Throwable $ exception ) : string { $ details = $ this -> getStatusCodeAndMessage ( $ exception ) ; $ xml = simplexml_load_string ( "<?xml version='1.0' encoding='utf-8'?><error />" ) ; $ xml -> addChild ( 'code' , $ details [ 'code' ] ) ; $ xml -> addChild ( 'message' , $ details [ 'message' ] ) ; return $ xml -> asXML ( ) ; }
Return a XML representation of the exception.

@param  \Throwable $exception Exception
@return string
Return a XML representation of the exception .