mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 16:07:03 +03:00
Bugfix: Declaration xmlSerialize(Sabre\Xml\Writer $writer) must be compatible with Sabre\Xml\XmlSerializable::xmlSerialize(Sabre\Xml\Writer $writer): void
This commit is contained in:
parent
5a9540b9c3
commit
19d7082d58
5 changed files with 5 additions and 5 deletions
|
|
@ -368,7 +368,7 @@ class Component extends Node
|
||||||
*
|
*
|
||||||
* @param Xml\Writer $writer XML writer
|
* @param Xml\Writer $writer XML writer
|
||||||
*/
|
*/
|
||||||
public function xmlSerialize(Xml\Writer $writer)
|
public function xmlSerialize(Xml\Writer $writer): void
|
||||||
{
|
{
|
||||||
$components = [];
|
$components = [];
|
||||||
$properties = [];
|
$properties = [];
|
||||||
|
|
|
||||||
|
|
@ -473,7 +473,7 @@ class VCard extends VObject\Document
|
||||||
*
|
*
|
||||||
* @param Xml\Writer $writer XML writer
|
* @param Xml\Writer $writer XML writer
|
||||||
*/
|
*/
|
||||||
public function xmlSerialize(Xml\Writer $writer)
|
public function xmlSerialize(Xml\Writer $writer): void
|
||||||
{
|
{
|
||||||
$propertiesByGroup = [];
|
$propertiesByGroup = [];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ abstract class Node implements \IteratorAggregate, \ArrayAccess, \Countable, \Js
|
||||||
*
|
*
|
||||||
* @param Xml\Writer $writer XML writer
|
* @param Xml\Writer $writer XML writer
|
||||||
*/
|
*/
|
||||||
abstract public function xmlSerialize(Xml\Writer $writer);
|
abstract public function xmlSerialize(Xml\Writer $writer): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call this method on a document if you're done using it.
|
* Call this method on a document if you're done using it.
|
||||||
|
|
|
||||||
|
|
@ -334,7 +334,7 @@ class Parameter extends Node
|
||||||
*
|
*
|
||||||
* @param Xml\Writer $writer XML writer
|
* @param Xml\Writer $writer XML writer
|
||||||
*/
|
*/
|
||||||
public function xmlSerialize(Xml\Writer $writer)
|
public function xmlSerialize(Xml\Writer $writer): void
|
||||||
{
|
{
|
||||||
foreach (explode(',', $this->value) as $value) {
|
foreach (explode(',', $this->value) as $value) {
|
||||||
$writer->writeElement('text', $value);
|
$writer->writeElement('text', $value);
|
||||||
|
|
|
||||||
|
|
@ -318,7 +318,7 @@ abstract class Property extends Node
|
||||||
*
|
*
|
||||||
* @param Xml\Writer $writer XML writer
|
* @param Xml\Writer $writer XML writer
|
||||||
*/
|
*/
|
||||||
public function xmlSerialize(Xml\Writer $writer)
|
public function xmlSerialize(Xml\Writer $writer): void
|
||||||
{
|
{
|
||||||
$parameters = [];
|
$parameters = [];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue