Version 2.0.0
Breaking Changes
- Minimum PHP version is now 8.4 (dropped 8.3)
veewee/xmlupgraded from v3 to v4, which uses PHP 8.4's spec-compliantDom\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 aDOMDocumentargument; it returnsDom\XMLDocumentMapper::__invoke()parameter changed fromDOMDocumenttoDom\XMLDocument
What's Changed
Full Changelog: 1.8.0...2.0.0