-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
Labels
Description
Rule
Currently const
are declared without visibility:
https://github.com/magento/magento2/blob/78bb169ff9721c8d05c35b4c29a4464fd45bccbe/app/code/Magento/Catalog/Model/Product.php#L54-L73
I suggest extending Coding Standard to require visibility - for example:
public const PRIMARY_KEY = 'entity_id';
private const DEFAULT_TIMEOUT = 60;
Reason
const
should be explicit if we can use them as a reference or it's declaration is only internal.
Implementation
N/A
keyurshah070, c4azmartin, ihor-sviziev, klimart, milindsingh and 2 more