Skip to content

Add AllowDynamicProperties attribute to xPDO class#257

Merged
opengeek merged 1 commit intomodxcms:2.xfrom
opengeek:issue-256
Apr 7, 2026
Merged

Add AllowDynamicProperties attribute to xPDO class#257
opengeek merged 1 commit intomodxcms:2.xfrom
opengeek:issue-256

Conversation

@opengeek
Copy link
Copy Markdown
Member

This avoids the deprecation warning when dynamic properties are assigned to the class in 8.2+ and resolves #256

This avoids the deprecation warning when dynamic properties are assigned to the class in 8.2+
@opengeek opengeek added the bug label Apr 16, 2024
@opengeek opengeek added this to the 2.8.7 milestone Apr 16, 2024
@opengeek opengeek linked an issue Apr 16, 2024 that may be closed by this pull request
@sonicpunk
Copy link
Copy Markdown

We can confirm this behaviour!

@modxcommunity
Copy link
Copy Markdown

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

https://community.modx.com/t/migxloopcollection-error-on-php-8-2/8051/2

@opengeek opengeek merged commit 31883d3 into modxcms:2.x Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP 8.2 Deprecated Dynamic Properties when using getService

4 participants