From 90a2781167c75b07b2e63dcb5c0f30c34abd1cc9 Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Fri, 14 Feb 2025 17:13:54 +0100 Subject: [PATCH] Removing LegacyPropertyManagementTrait from Changelog class --- migrations/54-60/removed-backward-incompatibility.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/migrations/54-60/removed-backward-incompatibility.md b/migrations/54-60/removed-backward-incompatibility.md index fb7b001e..2aa26585 100644 --- a/migrations/54-60/removed-backward-incompatibility.md +++ b/migrations/54-60/removed-backward-incompatibility.md @@ -168,3 +168,7 @@ if ($app instanceof \Joomla\CMS\Application\ConsoleApplication) { - `\Joomla\CMS\MVC\Controller\ApiController` uses a `Registry` object for the model state. - `\Joomla\CMS\User\UserHelper::getProfile()` returns a `stdClass` object now. +### `Joomla\CMS\Changelog\Changelog` has been changed significantly + +- PR: https://github.com/joomla/joomla-cms/pull/44897 +- Description: The `Changelog` class was entirely depending on the `LegacyPropertyManagementTrait` and its `->get()` method. This is problematic because the `->get()` method circumvents the complete access protection in PHP and the trait itself is deprecated. In Joomla 6.0 the properties of the class have been mostly changed to public and can be accessed directly and the trait has been removed.