From 986030060b84e147e6b6b3a68e6feeda73f15aa5 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Fri, 19 Apr 2019 15:25:01 +0100 Subject: [PATCH] XMPPHP - Fix string as array usage errors on PHP 7 --- plugins/Xmpp/extlib/XMPPHP/XMLStream.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/Xmpp/extlib/XMPPHP/XMLStream.php b/plugins/Xmpp/extlib/XMPPHP/XMLStream.php index 5c71426200..b7eb81aecd 100644 --- a/plugins/Xmpp/extlib/XMPPHP/XMLStream.php +++ b/plugins/Xmpp/extlib/XMPPHP/XMLStream.php @@ -27,13 +27,13 @@ */ /** 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 */