Skip to content
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

[2.x] Remove deprecation warning during setup for PHP 8.2 #16482

Merged
merged 1 commit into from Feb 27, 2024

Conversation

halftrainedharry
Copy link
Contributor

What does it do?

Adds the property $config to the class, so not to rely on dynamic properties.

Why is it needed?

In PHP 8.2 the deprecation warning

Deprecated: Creation of dynamic property modInstallLexicon::$config is deprecated in .../setup/includes/modinstalllexicon.class.php on line 35

may get shown on screen during the installation.

How to test

Install MODX with PHP 8.2 and display_errors = On and verify that the deprecation warning is not shown.

Related issue(s)/PR(s)

https://community.modx.com/t/error-message-on-upgrade-from-modx2-8-5-to-modx2-8-6/7099

@modxcommunity
Copy link
Collaborator

This pull request has been mentioned on MODX Community. There might be relevant details there:

https://community.modx.com/t/error-message-on-upgrade-from-modx2-8-5-to-modx2-8-6/7099/2

@rthrash rthrash added this to the v2.8.7 milestone Jan 24, 2024
@rthrash rthrash added the pr/ready-for-merging Pull request reviewed and tested and ready for merging. label Jan 24, 2024
@opengeek opengeek merged commit f834ecb into modxcms:2.x Feb 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/ready-for-merging Pull request reviewed and tested and ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants