From 551a5d84ab34b678e75d54bb0430c9f4eb3e1178 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Sun, 6 Dec 2020 11:04:16 -0500 Subject: [PATCH] Add PHP8-compat stub for SimpleXMLElement::current --- stubs/CoreGenericClasses.phpstub | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/stubs/CoreGenericClasses.phpstub b/stubs/CoreGenericClasses.phpstub index c2c5aeb10..62fa6b9a3 100644 --- a/stubs/CoreGenericClasses.phpstub +++ b/stubs/CoreGenericClasses.phpstub @@ -2214,3 +2214,15 @@ final class WeakReference /** @return ?T */ public function get(): ?object; } + +class SimpleXMLElement implements \Stringable, \Countable, \RecursiveIterator +{ + /** @return SimpleXMLElement */ + public function current() + { + } + /** @return SimpleXMLElement|null */ + public function getChildren() + { + } +}