From: William Desportes <williamdes@wdes.fr>
Date: Sat, 18 Mar 2023 15:36:58 +0100
Subject: Fix Creation of dynamic property

- Deprecated: Creation of dynamic property page::$index is deprecated in /usr/share/phpldapadmin/lib/page.php on line 38
- Deprecated: Creation of dynamic property page::$sysmsg is deprecated in /usr/share/phpldapadmin/lib/page.php on line 468
- Deprecated: Creation of dynamic property page::$_block is deprecated in /usr/share/phpldapadmin/lib/page.php on line 241
- Creation of dynamic property Template::$askcontainer is deprecated
- Creation of dynamic property PLAAttribute::$js is deprecated (on create entry of type Thunderbird)
- On import feature
- On export feature
- And others..

Origin: vendor
Forwarded: no
---
 lib/PLAAttribute.php     | 1 +
 lib/Query.php            | 1 +
 lib/Template.php         | 1 +
 lib/TemplateRender.php   | 2 ++
 lib/import_functions.php | 1 +
 lib/page.php             | 1 +
 6 files changed, 7 insertions(+)

diff --git a/lib/PLAAttribute.php b/lib/PLAAttribute.php
index a2f0091..dfcc8e6 100644
--- a/lib/PLAAttribute.php
+++ b/lib/PLAAttribute.php
@@ -12,6 +12,7 @@
  * @package phpLDAPadmin
  * @subpackage Templates
  */
+#[\AllowDynamicProperties]
 class PLAAttribute {
 	# Attribute Name
 	public $name;
diff --git a/lib/Query.php b/lib/Query.php
index cc2a4f3..cbfc77d 100644
--- a/lib/Query.php
+++ b/lib/Query.php
@@ -12,6 +12,7 @@
  * @package phpLDAPadmin
  * @subpackage Queries
  */
+#[\AllowDynamicProperties]
 class Query extends xmlTemplate {
 	protected $description = '';
 	public $results = array();
diff --git a/lib/Template.php b/lib/Template.php
index 2e4978f..5309193 100644
--- a/lib/Template.php
+++ b/lib/Template.php
@@ -28,6 +28,7 @@
  * @todo RDN attributes need to be checked that are included in the schema, otherwise mark it is invalid
  * @todo askcontainer is no longer used?
  */
+#[\AllowDynamicProperties]
 class Template extends xmlTemplate {
 	# If this template visible on the template choice list
 	private $visible = true;
diff --git a/lib/TemplateRender.php b/lib/TemplateRender.php
index b19d764..d273e35 100644
--- a/lib/TemplateRender.php
+++ b/lib/TemplateRender.php
@@ -15,6 +15,8 @@
 class TemplateRender extends PageRender {
 	# Page number
 	private $pagelast;
+	private $url_base;
+	private $layout;
 
 	/** CORE FUNCTIONS **/
 
diff --git a/lib/import_functions.php b/lib/import_functions.php
index 23a52f4..2c83149 100644
--- a/lib/import_functions.php
+++ b/lib/import_functions.php
@@ -144,6 +144,7 @@ abstract class Import {
  * @package phpLDAPadmin
  * @subpackage Import
  */
+#[\AllowDynamicProperties]
 class ImportLDIF extends Import {
 	private $_currentLineNumber = 0;
 	private $_currentLine = '';
diff --git a/lib/page.php b/lib/page.php
index fef5377..5053e9c 100644
--- a/lib/page.php
+++ b/lib/page.php
@@ -12,6 +12,7 @@
  * @package phpLDAPadmin
  * @subpackage Page
  */
+#[\AllowDynamicProperties]
 class page {
 	# pre-HTML headers
 	protected $_pageheader;
