Skip to content

Upgrade to veewee/xml v4 with PHP 8.4+ minimum#15

Merged
veewee merged 3 commits intophp-soap:mainfrom
veewee:upgrade/veewee-xml-v4
Mar 27, 2026
Merged

Upgrade to veewee/xml v4 with PHP 8.4+ minimum#15
veewee merged 3 commits intophp-soap:mainfrom
veewee:upgrade/veewee-xml-v4

Conversation

@veewee
Copy link
Copy Markdown
Member

@veewee veewee commented Mar 27, 2026

Summary

  • Bumps PHP requirement to ~8.4.0 || ~8.5.0 (drops PHP 8.3)
  • Upgrades veewee/xml from ^3.4 to ^4.7
  • Replaces all legacy DOM* classes with PHP 8.4 Dom\ namespace equivalents (DOMDocument -> Dom\XMLDocument, DOMElement -> Dom\Element, DOMNode -> Dom\Node, DOMXPath -> Dom\XPath)
  • Switches from azjezz/psl to standalone PSL packages (php-standard-library/dict, php-standard-library/foundation) ^6.1
  • Updates psalm target PHP version from 8.0 to 8.4
  • Removes PHP 8.3 from all CI workflow matrices
  • Removes comparable() usage in SoapHeaderTest due to v4 canonicalize behavior change with namespace prefixes

Test plan

  • All 26 tests pass
  • php-cs-fixer passes (0 fixable files)
  • psalm passes (0 errors)

veewee added 3 commits March 27, 2026 07:45
- Bump PHP requirement to ~8.4.0 || ~8.5.0
- Upgrade veewee/xml from ^3.4 to ^4.7
- Replace legacy DOM classes (DOMDocument, DOMElement, DOMNode, DOMXPath) with PHP 8.4 Dom\ namespace equivalents
- Switch from azjezz/psl to standalone PSL packages (dict, foundation) ^6.1
- Update psalm target PHP version to 8.4
- Remove PHP 8.3 from CI matrices
- Remove comparable() usage in SoapHeaderTest (incompatible with v4 canonicalize behavior)
- Bump veewee/xml to ^4.8 (ships DOM.phpstub)
- Register veewee/xml DOM stub in psalm.xml
- Remove all @psalm-suppress annotations (no longer needed)
- Use document_element() helper in SoapEnvelopeLocator
Dom\Element::getAttribute() returns null for missing attributes,
so the empty string check is unnecessary.
@veewee veewee merged commit 951fd67 into php-soap:main Mar 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant