From df94020c00e3cb402b9059569d4537b46571c7a0 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 7 Dec 2024 18:37:56 +0100 Subject: [PATCH] Rector --- src/Source/AbstractXmlSourceIterator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Source/AbstractXmlSourceIterator.php b/src/Source/AbstractXmlSourceIterator.php index 72434c3b..09df8adf 100644 --- a/src/Source/AbstractXmlSourceIterator.php +++ b/src/Source/AbstractXmlSourceIterator.php @@ -104,8 +104,8 @@ final public function rewind(): void { $this->parser = xml_parser_create(); xml_set_object($this->parser, $this); - xml_set_element_handler($this->parser, [$this, 'tagStart'], [$this, 'tagEnd']); - xml_set_character_data_handler($this->parser, [$this, 'tagContent']); + xml_set_element_handler($this->parser, $this->tagStart(...), $this->tagEnd(...)); + xml_set_character_data_handler($this->parser, $this->tagContent(...)); xml_parser_set_option($this->parser, \XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($this->parser, \XML_OPTION_SKIP_WHITE, 0);