Skip to content

Commit

Permalink
Update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot committed Oct 18, 2024
1 parent 7ee5939 commit b30c697
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/ext/dom/Dom/import_simplexml.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

#endif
#[\Since('8.4')]
function import_simplexml(object $node): \Dom\Element
function import_simplexml(object $node): \Dom\Attr|\Dom\Element
{
}
6 changes: 6 additions & 0 deletions stubs/ext/dom/dom_import_simplexml.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<?php

#endif
#[\Until('8.2')]
function dom_import_simplexml(object $node): \DOMElement
{
}
#endif
#[\Since('8.2')]
function dom_import_simplexml(object $node): \DOMAttr|\DOMElement
{
}

0 comments on commit b30c697

Please sign in to comment.