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:
the-djmaze 2022-09-05 11:12:56 +02:00
parent 5a9540b9c3
commit 19d7082d58
5 changed files with 5 additions and 5 deletions

View file

@ -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 = [];

View file

@ -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 = [];

View file

@ -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.

View file

@ -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);

View file

@ -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 = [];