X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fpsy%2Fpsysh%2Fsrc%2FPsy%2FCommand%2FParseCommand.php;h=72fab26f388986d64ddf3213751ec8f85c59b538;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hp=429bd44cab0592af7623fa1b26fe9dadd8cd2791;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/psy/psysh/src/Psy/Command/ParseCommand.php b/vendor/psy/psysh/src/Psy/Command/ParseCommand.php index 429bd44ca..72fab26f3 100644 --- a/vendor/psy/psysh/src/Psy/Command/ParseCommand.php +++ b/vendor/psy/psysh/src/Psy/Command/ParseCommand.php @@ -13,6 +13,7 @@ namespace Psy\Command; use PhpParser\Node; use PhpParser\Parser; +use Psy\Input\CodeArgument; use Psy\ParserFactory; use Psy\VarDumper\Presenter; use Psy\VarDumper\PresenterAware; @@ -72,7 +73,7 @@ class ParseCommand extends Command implements PresenterAware protected function configure() { $definition = array( - new InputArgument('code', InputArgument::REQUIRED, 'PHP code to parse.'), + new CodeArgument('code', InputArgument::REQUIRED, 'PHP code to parse.'), new InputOption('depth', '', InputOption::VALUE_REQUIRED, 'Depth to parse', 10), );