-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.4] Deprecate app property in FieldsPlugin #45695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I have tested this item ✅ successfully on 7b55457 $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. |
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. |
@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. |
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:
The |
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. |
Shouldn't there be some documentation explaining why this is being deprecated |
In future it is no longer supported by CMSPlugin #38060 joomla-cms/libraries/src/Plugin/CMSPlugin.php Line 163 in 108662f
|
that isnt a why? and its not in the accompanying manual entry |
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. |
To me the joomla/Manual#488 documentation PR looks complete. |
✅ Final test before merge, JBT graft full package
|
Thank you @heelc29 for your contribution. Thank you @brianteeman for support. Thank you @ceford and @laoneo for testing. |
Summary of Changes
deprecate
$app
property in FieldsPluginTesting Instructions
only deprecation > code reviewcheck fields plugin still working
Link to documentations
Please select: