Inspectopedia
 
2024.3

Class constant referenced via child class

Info
New
Last modified: 03 December 2024

Reports reference to a class constant via child class which gets this constant from the parent class by inheritance and does not override it within its own scope. Such reference may cause confusion between inheritance and overriding, so it's advisable to reference the constant directly via parent class instead.