Closed
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