The use of the @package
annotation is to help with grouping global classes into packages for easier consumption with tools such as phpDocumentor (which is used to generate api.joomla.org
). And yet, https://api.joomla.org/cms-3/classes/Joomla.CMS.Toolbar.ToolbarHelper.html and https://api.joomla.org/cms-3/classes/Joomla.CMS.Captcha.Captcha.html both indicate they have incorrect file level doc blocks because there is a package listed.
Maybe someone should write a PHPCS sniff to prevent this error from happening again...
Labels |
Added:
?
|
Also should be killed with fire. If it is namespaced, the namespace is the package/sub package.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-09-24 19:43:23 |
Closed_By | ⇒ | Quy |
What about class level blocks like here:
joomla-cms/libraries/src/Mail/MailWrapper.php
Lines 16 to 17 in 0433b29