]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
XMPPHP - Fix string as array usage errors on PHP 7
authorDiogo Cordeiro <diogo@fc.up.pt>
Fri, 19 Apr 2019 14:25:01 +0000 (15:25 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Fri, 19 Apr 2019 14:56:51 +0000 (15:56 +0100)
plugins/Xmpp/extlib/XMPPHP/XMLStream.php

index 5c71426200f31f8fe7a3b1a48aace879cd1935bc..b7eb81aecd988b51cda307a9c1419a5d8971adf7 100644 (file)
  */
 
 /** XMPPHP_Exception */
-require_once dirname(__FILE__) . '/Exception.php';
+require_once __DIR__ . DIRECTORY_SEPARATOR . 'Exception.php';
 
 /** XMPPHP_XMLObj */
-require_once dirname(__FILE__) . '/XMLObj.php';
+require_once __DIR__ . DIRECTORY_SEPARATOR . 'XMLObj.php';
 
 /** XMPPHP_Log */
-require_once dirname(__FILE__) . '/Log.php';
+require_once __DIR__ . DIRECTORY_SEPARTOR. 'Log.php';
 
 /**
  * XMPPHP XML Stream
@@ -124,13 +124,13 @@ class XMPPHP_XMLStream {
         */
        protected $default_ns;
        /**
-        * @var string
+        * @var string[]
         */
-       protected $until = '';
+       protected $until = [];
        /**
-        * @var string
+        * @var int[]
         */
-       protected $until_count = '';
+       protected $until_count = [];
        /**
         * @var array
         */