Skip to content

Commit

Permalink
Merge pull request #851 from Girgias/remove-xml-set-object-call
Browse files Browse the repository at this point in the history
refactor: drop call to xml_set_object()
  • Loading branch information
mblaney committed Nov 2, 2023
2 parents be9a239 + 6d40e1b commit 290e930
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Parser.php
Expand Up @@ -133,7 +133,6 @@ public function parse(string &$data, string $encoding, string $url = '')
$xml = xml_parser_create_ns($this->encoding, $this->separator);
xml_parser_set_option($xml, XML_OPTION_SKIP_WHITE, 1);
xml_parser_set_option($xml, XML_OPTION_CASE_FOLDING, 0);
xml_set_object($xml, $this);
xml_set_character_data_handler($xml, [$this, 'cdata']);
xml_set_element_handler($xml, [$this, 'tag_open'], [$this, 'tag_close']);

Expand Down

0 comments on commit 290e930

Please sign in to comment.