dep: update phan
This commit is contained in:
+1
-1
@@ -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
|
||||
{
|
||||
|
||||
+10
-1
@@ -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;
|
||||
|
||||
+1
@@ -28,6 +28,7 @@ use Phan\Phan;
|
||||
|
||||
/**
|
||||
* Print usage for phantasm and exit.
|
||||
* @return never
|
||||
*/
|
||||
function phantasm_usage(int $status) : void {
|
||||
global $argv;
|
||||
|
||||
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user