# Undefined Constant Analyzer
|Category||Severity||Time To Fix|
|✅ Reliability||Major||5 minutes|
This analyzer scans your application code to ensure that your code does not reference undefined constants.
Some examples of such code include:
- Trying to access an undefined constant.
- Trying to access a constant outside of its class scope.
- Trying to access a constant on an unknown class or a class that has not been imported properly.
Viewing Detailed Error Messages
To view detailed error messages, use the
--details option while running the
enlightn Artisan command.
# How To Fix
The analyzer highlights the files and lines of code where these bugs may appear. To fix them, make sure there are no undefined constants based on the examples listed above.