# Invalid Function Call Analyzer
Category | Severity | Time To Fix |
---|---|---|
✅ Reliability | Major | 5 minutes |
Class: Enlightn\Enlightn\Analyzers\Reliability\InvalidFunctionCallAnalyzer
# Introduction
This analyzer scans your application code to ensure that your code does not contain function calls that are either non-existent or do not match the function signature.
For instance, the bar
function call below does not match the function signature:
bar(1);
function bar($foo, $bar)
{
}
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 should confirm the following:
- Confirm there is no typo in the function name.
- Confirm that the function call matches the function signature.
- Confirm that your application imports or autoloads any functions called.