Fix signature of DOMNode::lookupNamespaceURI#2527
Fix signature of DOMNode::lookupNamespaceURI#2527ondrejmirtes merged 1 commit intophpstan:1.10.xfrom
DOMNode::lookupNamespaceURI#2527Conversation
| 'DOMNode::isSameNode' => ['bool', 'node'=>'DOMNode'], | ||
| 'DOMNode::isSupported' => ['bool', 'feature'=>'string', 'version'=>'string'], | ||
| 'DOMNode::lookupNamespaceURI' => ['string', 'prefix'=>'string'], | ||
| 'DOMNode::lookupNamespaceURI' => ['?string', 'prefix'=>'?string'], |
There was a problem hiding this comment.
are you sure the prefix parameter is nullable?
per php.net docs it is not nullable
https://www.php.net/manual/en/domnode.lookupnamespaceuri.php
I don‘t know the details of the C php sources.. in case you are sure, please consider open a PR for the php.net docs
——
the return type seems fine
There was a problem hiding this comment.
Comment there says so: https://www.php.net/manual/en/domnode.lookupnamespaceuri.php#75556
Also in php-src master: https://github.com/php/php-src/blob/b3553159a7b15d1ddd485aba9f83485f08e2e800/ext/dom/php_dom.stub.php#L378-L379
Also, the referenced C sources don't change except for the return; (7.4.33) changing to RETURN_THROWS(); (master).
There was a problem hiding this comment.
@paulbalandan please update the https://github.com/php/doc-en too
|
Thank you. |
Fixes phpstan/phpstan#9504
Ref:
I think phpstorm-stubs should also be updated.