Skip to content

Version 2.0.0

Choose a tag to compare

@veewee veewee released this 27 Mar 11:21
· 2 commits to main since this release
2.0.0
34dd635

Breaking Changes

  • Minimum PHP version is now 8.4 (dropped 8.3)
  • veewee/xml upgraded from v3 to v4, which uses PHP 8.4's spec-compliant Dom\ API

Upgrade Guide

If you wrote custom middleware using XmlMessageManipulator:

The callable passed to $document->manipulate() now receives Dom\XMLDocument instead of DOMDocument:

// Before
$document->manipulate(function (DOMDocument $dom) { ... });

// After
$document->manipulate(function (Dom\XMLDocument $dom) { ... });

If you passed custom callables to SoapHeaderMiddleware:

Callable signatures changed from callable(DOMNode): DOMElement to callable(Dom\Node): Dom\Element. If you use SoapHeader from php-soap/xml (as shown in the README), no changes are needed.

If you extended Psr7StreamLoader or Psr7StreamMapper:

  • Loader::__invoke() no longer takes a DOMDocument argument; it returns Dom\XMLDocument
  • Mapper::__invoke() parameter changed from DOMDocument to Dom\XMLDocument

What's Changed

  • Upgrade to veewee/xml v4 and bump minimum PHP to 8.4 by @veewee in #22

Full Changelog: 1.8.0...2.0.0