[PRES] [web-pres2] master: Fixed PHP compatibility issue

[email protected] (Derick Rethans) Thu, 12 Jun 2025 15:54:01 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Author: Derick Rethans (derickr)
Date: 2025-06-12T16:41:32+01:00

Commit: https://github.com/php/web-pres2/commit/f324216096dcbb8ac43f0c91966b2d30a6d87dea
Raw diff: https://github.com/php/web-pres2/commit/f324216096dcbb8ac43f0c91966b2d30a6d87dea.diff

Fixed PHP compatibility issue

Changed paths:
  M  vendor/pear/XML/Parser.php
  M  vendor/pear/XML/Parser/Simple.php


Diff:

diff --git a/vendor/pear/XML/Parser.php b/vendor/pear/XML/Parser.php
index ede039f..8a10458 100644
--- a/vendor/pear/XML/Parser.php
+++ b/vendor/pear/XML/Parser.php
@@ -656,7 +656,7 @@ function funcEndHandler($xp, $elem)
      * @return null
      * @abstract
      */
-    function startHandler($xp, $elem, &$attribs)
+    function startHandler($xp, $elem, $attribs)
     {
         return null;
     }
diff --git a/vendor/pear/XML/Parser/Simple.php b/vendor/pear/XML/Parser/Simple.php
index cc3ebb8..b80fde3 100644
--- a/vendor/pear/XML/Parser/Simple.php
+++ b/vendor/pear/XML/Parser/Simple.php
@@ -218,7 +218,7 @@ function reset()
      * @access private
      * @final
      */
-    function startHandler($xp, $elem, &$attribs)
+    function startHandler($xp, $elem, $attribs)
     {
         array_push($this->_elStack, array(
             'name'    => $elem,