PHP 8.x PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
22 Aug 2023

Summary of Changes

The User object should allow dynamic properties like the custom fields. This warnings do appear as User does not extend CMSObject anymore.

This is a temporary solution and it should not encourage 3rd party developers to add dynamic properties to the User object.

Testing Instructions

  • Create a contact
  • Create a menu item for the contact
  • Open the contact on the front end

Actual result BEFORE applying this Pull Request

The following deprecated messages are shown:
Deprecated: Creation of dynamic property Joomla\CMS\User\User::$text is deprecated in /var/www/html/joomla/components/com_contact/src/View/Contact/HtmlView.php on line 356

Deprecated: Creation of dynamic property Joomla\CMS\User\User::$jcfields is deprecated in /var/www/html/joomla/plugins/system/fields/src/Extension/Fields.php on line 462

Expected result AFTER applying this Pull Request

No messages.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2023
Category Libraries
avatar laoneo laoneo - open - 22 Aug 2023
avatar laoneo laoneo - change - 22 Aug 2023
Status New Pending
avatar laoneo laoneo - change - 22 Aug 2023
Labels Added: PR-5.0-dev
avatar laoneo laoneo - change - 22 Aug 2023
The description was changed
avatar laoneo laoneo - edited - 22 Aug 2023
avatar laoneo laoneo - change - 22 Aug 2023
The description was changed
avatar laoneo laoneo - edited - 22 Aug 2023
avatar laoneo laoneo - change - 22 Aug 2023
Labels Added: PHP 8.x
avatar laoneo laoneo - change - 22 Aug 2023
Title
Allow dynamic properties on the user object
[5.0] Allow dynamic properties on the user object
avatar laoneo laoneo - edited - 22 Aug 2023
avatar HLeithner HLeithner - change - 22 Aug 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-08-22 08:56:55
Closed_By HLeithner
avatar HLeithner HLeithner - close - 22 Aug 2023
avatar HLeithner HLeithner - merge - 22 Aug 2023
avatar HLeithner HLeithner - change - 22 Aug 2023
The description was changed
avatar HLeithner HLeithner - edited - 22 Aug 2023
avatar HLeithner
HLeithner - comment - 22 Aug 2023

thanks

Add a Comment

Login with GitHub to post a comment