Skip to content

Conversation

stefanfisk
Copy link
Contributor

@stefanfisk
Copy link
Contributor Author

Removing the stub for DOMXPath fixes the issue and all tests pass. But I don't understand if there are any other consequences to this approach compared to providing a fully typed stub.

@ondrejmirtes ondrejmirtes merged commit 97289f1 into phpstan:2.1.x Oct 6, 2025
544 of 549 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

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.

Incorrect return type for DOMXPath::query()

2 participants