Skip to content

Commit

Permalink
Avoid modLexicon deprecation warning in PHP 8.2+ (#16589)
Browse files Browse the repository at this point in the history
### What does it do?
Adds the `config` property to the `modlexicon.class.php` class, to not
to rely on a dynamic property.


### Why is it needed?
PHP 8 deprecates dynamic properties and an error may show up in the UI
when error reporting is turned on.


### Related issue(s)/PR(s)
- #16482
  • Loading branch information
marcuspoehls authored Oct 30, 2024
1 parent eb8c553 commit ea7e567
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/model/modx/modlexicon.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ class modLexicon {
* @var array $_loadedTopics
*/
protected $_loadedTopics = array();

/**
* An array of configuration properties
*
* @var array $config
*/
protected $config = array();

/**
* Creates the modLexicon instance.
*
Expand Down

0 comments on commit ea7e567

Please sign in to comment.