dep: update phan

This commit is contained in:
2021-10-12 01:36:02 +09:00
parent c3c99c5f76
commit 43ec361d03
131 changed files with 4268 additions and 2452 deletions
Vendored Regular → Executable
View File
View File
Vendored Regular → Executable
+1 -1
View File
@@ -29,7 +29,7 @@ class StubsGenerator
{
/**
* @return void (does not return)
* @return never (does not return)
*/
public static function printHelpAndExit(string $message = '', int $exit_code = 1) : void
{
Vendored Regular → Executable
+10 -1
View File
@@ -8,8 +8,12 @@ use Phan\Phan;
define("PDEP_IGNORE_STATIC", 1 << 0);
define("PDEP_HIDE_LABELS", 1 << 1);
define("PDEP_IGNORE_NEW", 1 << 2);
/** Prints a usage message for 'pdep' and exits. */
/**
* Prints a usage message for 'pdep' and exits.
* @return never
*/
function pdep_usage(int $status) : void {
global $argv;
echo <<<EOT
@@ -25,6 +29,7 @@ Usage: {$argv[0]} [options] [files or classes...]
-m, --graphml GraphML output
--hide-labels Labels are hidden - hover in yEd to see them
--ignore-static Don't include static calls and static var dependencies
--ignore-new Don't include instantiation dependencies
-d, --depth <depth_level>
When walking the dependency graph, limit it to this depth. For
example,
@@ -67,6 +72,7 @@ call_user_func(static function () : void {
'graph',
'graphml',
'ignore-static',
'ignore-new',
'hide-labels',
'find-classes',
'find-files',
@@ -134,6 +140,9 @@ call_user_func(static function () : void {
case 'ignore-static':
$graph_flags |= \PDEP_IGNORE_STATIC;
break;
case 'ignore-new':
$graph_flags |= \PDEP_IGNORE_NEW;
break;
case 'hide-labels':
$graph_flags |= \PDEP_HIDE_LABELS;
break;
Vendored Regular → Executable
+1
View File
@@ -28,6 +28,7 @@ use Phan\Phan;
/**
* Print usage for phantasm and exit.
* @return never
*/
function phantasm_usage(int $status) : void {
global $argv;
Vendored Regular → Executable
+2 -1
View File
@@ -10,7 +10,8 @@ use Phan\CLIBuilder;
use Phan\Phan;
/**
* Print usage for phoogle and exit.
* Print usage for phoogle and exit.
* @return never
*/
function phoogle_usage(int $status) : void {
global $argv;