The Mouf PHP framework: an open-source PHP framework providing an easy way to download, install, use and reuse components, with a graphical user interface.
MIT License
54
stars
28
forks
source link
Class analysis fails if defaultParamater value is a const of a none available class #129
Ex : using ElasticSearch package : elasticsearch/elasticsearch. This class uses Monolog to define a defaultValue, whereas monolog is only suggested in composer.json:
/**
* @param $path string
* @return \Monolog\Logger\Logger
*/
public static function defaultLogger($path, $level = Logger::WARNING)
{
$log = new Logger('log');
$handler = new StreamHandler($path, $level);
$log->pushHandler($handler);
return $log;
}
This will trigger an error in IncludesAnalyzerController when displaying errors
Ex : using ElasticSearch package : elasticsearch/elasticsearch. This class uses Monolog to define a defaultValue, whereas monolog is only suggested in composer.json:
This will trigger an error in
IncludesAnalyzerController
when displaying errors