Skip to content

Fix PHP 8.2 dynamic properties #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/PLAAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* @package phpLDAPadmin
* @subpackage Templates
*/
#[\AllowDynamicProperties]
class PLAAttribute {
# Attribute Name
public $name;
Expand Down
1 change: 1 addition & 0 deletions lib/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* @package phpLDAPadmin
* @subpackage Queries
*/
#[\AllowDynamicProperties]
class Query extends xmlTemplate {
protected $description = '';
public $results = array();
Expand Down
1 change: 1 addition & 0 deletions lib/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions lib/TemplateRender.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
class TemplateRender extends PageRender {
# Page number
private $pagelast;
private $url_base;
private $layout;

/** CORE FUNCTIONS **/

Expand Down
1 change: 1 addition & 0 deletions lib/import_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public function LDAPimport() {
* @package phpLDAPadmin
* @subpackage Import
*/
#[\AllowDynamicProperties]
class ImportLDIF extends Import {
private $_currentLineNumber = 0;
private $_currentLine = '';
Expand Down
1 change: 1 addition & 0 deletions lib/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* @package phpLDAPadmin
* @subpackage Page
*/
#[\AllowDynamicProperties]
class page {
# pre-HTML headers
protected $_pageheader;
Expand Down