Open marcuspoehls opened 5 months ago
Update to PHP 8.2 and watch your Modx log file. You’ll notice PHP deprecation warnings for dynamic properties in the xPDO class. This happens in xPDO when using the getService method because it dynamically assigns the named service to their instance. See https://github.com/modxcms/revolution/blob/45e4b239f72a2352e788e4f2a3c3f0f456a5e175/core/xpdo/xpdo.class.php#L1238
xPDO
getService
The deprecation log lines look like this:
Deprecated: Creation of dynamic property modX::$myCustomService is deprecated in /core/xpdo/xpdo.class.php on line 1238
MODX 2.8.7, PHP 8.2.16
I can confirm this.
Bug report
Summary
Update to PHP 8.2 and watch your Modx log file. You’ll notice PHP deprecation warnings for dynamic properties in the
xPDO
class. This happens in xPDO when using thegetService
method because it dynamically assigns the named service to their instance. See https://github.com/modxcms/revolution/blob/45e4b239f72a2352e788e4f2a3c3f0f456a5e175/core/xpdo/xpdo.class.php#L1238The deprecation log lines look like this:
Environment
MODX 2.8.7, PHP 8.2.16