-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[5.2] phpcs comments / use statements #44194
Conversation
I have tested this item ✅ successfully on 0c6ea05 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44194. |
1 similar comment
I have tested this item ✅ successfully on 0c6ea05 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44194. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44194. |
are we sure we even need to disable phpcs for this? There are a lot of instances where it is not disabled eg
|
@brianteeman It is needed when in that file a function is defined or a class. PHPCS say then that you shall not have both in the same file, a statement with side effects like the defined, and definition of a symbol. In your example it is not needed because the function definitions are wrapped into an anonymous class. |
@richard67 Thanks you for the explanation |
Thanks @heelc29 ! |
Summary of Changes
Testing Instructions
code review