Skip to content

Conversation

@rasamassen
Copy link

@rasamassen rasamassen commented Oct 21, 2025

Description

The latest PHPStan is throwing 45 errors on every pull request. This fixes those errors.

Fixes all errors except tests/PhpWordTests/XmlDocument.php, line 160, Method PhpOffice\PhpWordTests\XmlDocument::getNodeList() should return DOMNodeList but returns DOMNodeList<DOMNameSpaceNode|DOMNode>|false.

Checklist:

  • My CI is 🟢
  • I have covered by unit tests my new code (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes
  • I have updated the changelog

@coveralls
Copy link

coveralls commented Oct 21, 2025

Coverage Status

coverage: 96.757%. remained the same
when pulling 6fd8495 on rasamassen:phpstan
into 0ab0b49 on PHPOffice:master.

@rasamassen
Copy link
Author

@Progi1984 I squashed 44 of the 45 PHPStan errors. Can you get the last one? I couldn't figure out that one...

I'd be happy to keep working on making improvements to PHPWord, but I'm waiting on you to review and merge or request changes to the existing 17 pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants