We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ee5939 commit b30c697Copy full SHA for b30c697
stubs/ext/dom/Dom/import_simplexml.php
@@ -4,6 +4,6 @@
4
5
#endif
6
#[\Since('8.4')]
7
-function import_simplexml(object $node): \Dom\Element
+function import_simplexml(object $node): \Dom\Attr|\Dom\Element
8
{
9
}
stubs/ext/dom/dom_import_simplexml.php
@@ -1,6 +1,12 @@
1
<?php
2
3
+#[\Until('8.2')]
function dom_import_simplexml(object $node): \DOMElement
+}
+#endif
+#[\Since('8.2')]
10
+function dom_import_simplexml(object $node): \DOMAttr|\DOMElement
11
+{
12
0 commit comments