summaryrefslogtreecommitdiffstats
path: root/debian/patches/php8.2.patch
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/patches/php8.2.patch124
1 files changed, 124 insertions, 0 deletions
diff --git a/debian/patches/php8.2.patch b/debian/patches/php8.2.patch
new file mode 100644
index 0000000..3747076
--- /dev/null
+++ b/debian/patches/php8.2.patch
@@ -0,0 +1,124 @@
+Description: Fix issues with php8.2.
+Author: Bas Couwenberg <sebastic@debian.org>
+Bug: https://github.com/Icinga/icingaweb2/issues/4918
+Bug-Debian: https://bugs.debian.org/1023354
+
+--- a/library/Icinga/Application/Modules/Module.php
++++ b/library/Icinga/Application/Modules/Module.php
+@@ -77,6 +77,13 @@ class Module
+ private $libdir;
+
+ /**
++ * Configuration directory
++ *
++ * @var string
++ */
++ private $configdir;
++
++ /**
+ * Directory containing translations
+ *
+ * @var string
+--- a/library/Icinga/Less/ColorProp.php
++++ b/library/Icinga/Less/ColorProp.php
+@@ -21,7 +21,7 @@ class ColorProp extends Less_Tree_Color
+ protected $index;
+
+ /** @var string Color variable name */
+- protected $name;
++ public $name;
+
+ public function __construct()
+ {
+--- a/library/Icinga/Util/LessParser.php
++++ b/library/Icinga/Util/LessParser.php
+@@ -10,6 +10,8 @@ require_once 'lessphp/lessc.inc.php';
+
+ class LessParser extends lessc
+ {
++ public $importDisabled;
++
+ public function __construct()
+ {
+ $this->setOption('plugins', [new Visitor()]);
+--- a/library/Icinga/Web/Navigation/ConfigMenu.php
++++ b/library/Icinga/Web/Navigation/ConfigMenu.php
+@@ -33,6 +33,8 @@ class ConfigMenu extends BaseHtmlElement
+
+ protected $state;
+
++ protected $title;
++
+ public function __construct()
+ {
+ $this->children = [
+--- a/library/vendor/lessphp/lib/Less/Tree/Color.php
++++ b/library/vendor/lessphp/lib/Less/Tree/Color.php
+@@ -11,6 +11,7 @@ class Less_Tree_Color extends Less_Tree
+ public $alpha;
+ public $isTransparentKeyword;
+ public $type = 'Color';
++ public $name = 'n/a';
+
+ public function __construct( $rgb, $a = 1, $isTransparentKeyword = null ) {
+ if ( $isTransparentKeyword ) {
+--- a/library/vendor/lessphp/lib/Less/Tree/Dimension.php
++++ b/library/vendor/lessphp/lib/Less/Tree/Dimension.php
+@@ -11,6 +11,7 @@ class Less_Tree_Dimension extends Less_T
+ public $value;
+ public $unit;
+ public $type = 'Dimension';
++ public $parensInOp;
+
+ public function __construct( $value, $unit = null ) {
+ $this->value = floatval( $value );
+--- a/library/vendor/lessphp/lib/Less/Tree/Operation.php
++++ b/library/vendor/lessphp/lib/Less/Tree/Operation.php
+@@ -12,6 +12,7 @@ class Less_Tree_Operation extends Less_T
+ public $operands;
+ public $isSpaced;
+ public $type = 'Operation';
++ public $parensInOp;
+
+ /**
+ * @param string $op
+--- a/library/vendor/lessphp/lib/Less/Tree/Variable.php
++++ b/library/vendor/lessphp/lib/Less/Tree/Variable.php
+@@ -13,6 +13,7 @@ class Less_Tree_Variable extends Less_Tr
+ public $currentFileInfo;
+ public $evaluating = false;
+ public $type = 'Variable';
++ public $parensInOp;
+
+ /**
+ * @param string $name
+--- a/library/vendor/Zend/Form/Decorator/Label.php
++++ b/library/vendor/Zend/Form/Decorator/Label.php
+@@ -43,6 +43,7 @@
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ * @version $Id$
+ */
++#[AllowDynamicProperties]
+ class Zend_Form_Decorator_Label extends Zend_Form_Decorator_Abstract
+ {
+ /**
+--- a/library/vendor/Zend/Form/Element.php
++++ b/library/vendor/Zend/Form/Element.php
+@@ -36,6 +36,7 @@
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ * @version $Id$
+ */
++#[AllowDynamicProperties]
+ class Zend_Form_Element implements Zend_Validate_Interface
+ {
+ /**
+--- a/library/vendor/Zend/View/Abstract.php
++++ b/library/vendor/Zend/View/Abstract.php
+@@ -33,6 +33,7 @@
+ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
++#[AllowDynamicProperties]
+ abstract class Zend_View_Abstract implements Zend_View_Interface
+ {
+ /**