Skip to content

Conversation

@VincentLanglet
Copy link
Contributor

While looking at #3714
I discovered that getAttributeNode/getAttributeNodeNS return type was wrong

cf https://www.php.net/manual/en/domelement.getattributenode.php
and https://www.php.net/manual/en/domelement.getattributenodens.php

I fixed it in JetBrains/phpstorm-stubs#1811
but then we will end with false positive since PHPStan does not understand hasAttribute,
so I added a benevolent union.

I also added the non-regression from #3714 to show the related-issues are solved

Closes #3714

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