# Invalid Method Call Analyzer
|Category||Severity||Time To Fix|
|✅ Reliability||Major||5 minutes|
This analyzer scans your application code to ensure that your code does not contain method calls that are either non-existent or do not match the method scope or signature.
Some examples of invalid method calls include:
- Calling a private method from an ancestor class.
- Missing required parameters in method calls.
- Expecting a return from a void method.
- Calls to undefined methods.
- Calls to abstract methods.
- Static calls to instance methods.
- Calling methods outside of class scope.
- Method signature mismatch.
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, you need to make sure that the method exists, is accessible within the scope, and the call matches the method signature.