dav icon indicating copy to clipboard operation
dav copied to clipboard

PHP 8.4: compile error

Open mokraemer opened this issue 4 months ago • 2 comments

The new corrected type definitions in subproject xml was not correctly mapped to this project: Type of Sabre\DAV\Xml\Service::$elementMap must be array (as in class Sabre\Xml\Service)

In addition, I suggest doing this in the constructor, instead of replacing a parent property, which will also raise deprecation warnings.

mokraemer avatar Aug 13 '25 12:08 mokraemer

  • Declaration of Sabre\DAV\Xml\Element\Response::xmlSerialize(Sabre\Xml\Writer $writer) must be compatible with Sabre\Xml\XmlSerializable::xmlSerialize(Sabre\Xml\Writer $writer): void
  • Sabre\DAV\Xml\Property\GetLastModified::xmlSerialize(Sabre\Xml\Writer $writer) must be compatible with Sabre\Xml\XmlSerializable::xmlSerialize(Sabre\Xml\Writer $writer): void
  • Sabre\DAV\Xml\Property\LockDiscovery::xmlSerialize(Sabre\Xml\Writer $writer) must be compatible with Sabre\Xml\XmlSerializable::xmlSerialize(Sabre\Xml\Writer $writer): void

mokraemer avatar Aug 13 '25 13:08 mokraemer

I believe it is fixed in master and it's dependencies.

alecpl avatar Dec 03 '25 18:12 alecpl