fprintf(STDERR,"Phan did not parse any files in the project %s - This may be an issue with the Phan config or CLI options.\n",StringUtil::jsonEncode(Config::getProjectRootDirectory()));
// Unless debugging Phan itself, these two configurations are unnecessarily adding slowness.
if(PHP_DEBUG){
CLI::printHelpSection("WARNING: Phan is around twice as slow when php is compiled with --enable-debug (That option is only needed when debugging Phan itself).\n",false,true);
$warned=true;
}
// We warn about Xdebug in src/codebase.php, so skip that check here.
fwrite(STDERR,"(The above warning(s) about slow PHP settings can be disabled by setting 'skip_slow_php_options_warning' to true in .phan/config.php)\n");
}
}
/**
* Loads configured stubs for internal PHP extensions.
* @throws InvalidArgumentException if the stubs or stub config is invalid
// Prefer using reflection info from the running extension over what's in the stub files.
// (The originals were already added to the CodeBase)
if(\extension_loaded($extension_name)){
continue;
}
if(!is_string($path_to_extension)){
thrownew\InvalidArgumentException("Invalid autoload_internal_extension_signatures: path for $extension_name is not a string: value: ".var_representation($path_to_extension));
thrownew\InvalidArgumentException("Invalid autoload_internal_extension_signatures: path for $extension_name is not a file: value: ".var_representation($path_to_extension));