* This class is the entry point into the static analyzer.
*/
classAnalysis
{
/**
* This first pass parses code and looks for the subset
* of issues that can be found without having to have
* an understanding of the entire code base.
*
* @param CodeBase $code_base
* The CodeBase represents state across the entire
* code base. This is a mutable object which is
* populated as we parse files
*
* @param string $file_path
* The full path to a file we'd like to parse
*
* @param bool $suppress_parse_errors
*
* @param ?string $override_contents
* If this is not null, this function will act as if $file_path's contents
* were $override_contents
*
* @param bool $is_php_internal_stub
* If this is true, this function will act as though the parsed constants, functions, and classes are actually part of PHP or it's extension's internals.
* See autoload_internal_extension_signatures.
* @param ?Request $request probably a \Phan\Daemon\ParseRequest during language server mode.
* @throws InvalidArgumentException for invalid stub files
\fprintf(STDERR,"getReturnTypeOverrides returned an invalid FQSEN %s: %s\n",$fqsen_string,$e->getMessage());
}
}
// To fix issues such as https://github.com/phan/phan/issues/4090, this (1) always calls addFunctionCallAnalyzer,
// and (2) automatically loads definitions for functions and methods by calling hasFunctionWithFQSEN (etc.), so that internal function definitions used by previous plugins can be iterated over by the next plugin being called (e.g. if getFunctionSet is called).