RTC PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar heelc29
heelc29
6 Jul 2025

Summary of Changes

deprecate $app property in FieldsPlugin

Testing Instructions

only deprecation > code review
check fields plugin still working

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • Pull Request link for manual.joomla.org: joomla/Manual#488
avatar heelc29 heelc29 - open - 6 Jul 2025
avatar heelc29 heelc29 - change - 6 Jul 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jul 2025
Category Administration com_fields
avatar heelc29 heelc29 - change - 6 Jul 2025
The description was changed
avatar heelc29 heelc29 - edited - 6 Jul 2025
avatar heelc29 heelc29 - change - 6 Jul 2025
Labels Added: PR-5.4-dev
avatar ceford ceford - test_item - 22 Jul 2025 - Tested successfully
avatar ceford
ceford - comment - 22 Jul 2025

I have tested this item ✅ successfully on 7b55457

Just a thought: would it be better to use a local $language variable:

$language = $app->getLanguage()

and then use that in the loops. Otherwise, this looks OK to me.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45695.

avatar laoneo laoneo - test_item - 25 Jul 2025 - Tested successfully
avatar laoneo
laoneo - comment - 25 Jul 2025

I have tested this item ✅ successfully on 7b55457


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45695.

avatar richard67
richard67 - comment - 25 Jul 2025

@heelc29 Is there a reason why this PR is still draft?

avatar heelc29 heelc29 - change - 28 Jul 2025
The description was changed
avatar heelc29 heelc29 - edited - 28 Jul 2025
avatar heelc29
heelc29 - comment - 28 Jul 2025

@heelc29 Is there a reason why this PR is still draft?

Since I discovered an use of the variable in the core and updated the testing instructions and also have to update the baseline file.

avatar brianteeman
brianteeman - comment - 28 Jul 2025

we need to do better than this. Instead of adding an exception why not fix it. I was taught by @nibra that when we deprecate something we should stop using it in the core at the same time.

avatar richard67
richard67 - comment - 28 Jul 2025

we need to do better than this. Instead of adding an exception why not fix it. I was taught by @nibra that when we deprecate something we should stop using it in the core at the same time.

@brianteeman In general that's right, but here we need the exclusion due to the b/c code:

$app   = $this->getApplication() ?: $this->app;

The ?: $this->app part has to be kept for b/c until Joomla 7, and this part causes the PHPstan complaint.

avatar laoneo
laoneo - comment - 28 Jul 2025

But then it would be better to add a phpstan ignore on that line.

avatar richard67
richard67 - comment - 28 Jul 2025

But then it would be better to add a phpstan ignore on that line.

@laoneo I don't know. Maybe yes. As it is a relative new thing that we do not ignore PHPstan in CI, we don't have much practice with that yet. Up to now we were using the baseline file to ignore errors and as a task list.

I think we should discuss that and find a common way in the maintainers team.

avatar brianteeman
brianteeman - comment - 28 Jul 2025

Shouldn't there be some documentation explaining why this is being deprecated

avatar heelc29
heelc29 - comment - 28 Jul 2025

Shouldn't there be some documentation explaining why this is being deprecated

In future it is no longer supported by CMSPlugin #38060

@trigger_error('The application should be injected through setApplication() and requested through getApplication().', E_USER_DEPRECATED);

avatar brianteeman
brianteeman - comment - 28 Jul 2025

that isnt a why? and its not in the accompanying manual entry

avatar richard67 richard67 - change - 9 Aug 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 9 Aug 2025

RTC as the previous human tests are still valid. There was only a change on the PHPstan baseline file after that and a clean branch update.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45695.

avatar richard67
richard67 - comment - 9 Aug 2025

To me the joomla/Manual#488 documentation PR looks complete.

avatar muhme muhme - change - 9 Aug 2025
Labels Added: RTC
avatar muhme
muhme - comment - 9 Aug 2025

✅ Final test before merge, JBT graft full package

  • Enabled Log Almost Everything
  • Created custom field 'color' and featured article and tested in administrator backend and site frontent
  • Created one more article, a field group and fields user, url and usergroup and assigned to the group
    • All three fields are available and working in adminstrator backend
    • User field is missing in site frontend edit view, but is also missing before this PR -> opened #45874 for clarification
  • No entries in administrator/logs/*
avatar muhme muhme - change - 9 Aug 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-08-09 18:34:28
Closed_By muhme
avatar muhme muhme - close - 9 Aug 2025
avatar muhme muhme - merge - 9 Aug 2025
avatar muhme
muhme - comment - 9 Aug 2025

Thank you @heelc29 for your contribution. Thank you @brianteeman for support. Thank you @ceford and @laoneo for testing.

Add a Comment

Login with GitHub to post a comment