updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -5,9 +5,12 @@ sudo: false
matrix:
include:
- php: 5.4
dist: trusty
- php: 5.4
env: 'COMPOSER_FLAGS="--prefer-lowest --prefer-stable"'
dist: trusty
- php: 5.5
dist: trusty
- php: 5.6
- php: 7.0
- php: 7.1

View File

@@ -16,10 +16,10 @@
"php": ">=5.4.0",
"ext-json": "*",
"ext-tokenizer": "*",
"symfony/console": "~2.3.10|^2.4.2|~3.0|~4.0",
"symfony/var-dumper": "~2.7|~3.0|~4.0",
"symfony/console": "~2.3.10|^2.4.2|~3.0|~4.0|~5.0",
"symfony/var-dumper": "~2.7|~3.0|~4.0|~5.0",
"nikic/php-parser": "~1.3|~2.0|~3.0|~4.0",
"dnoegel/php-xdg-base-dir": "0.1",
"dnoegel/php-xdg-base-dir": "0.1.*",
"jakub-onderka/php-console-highlighter": "0.3.*|0.4.*"
},
"require-dev": {

View File

@@ -56,6 +56,8 @@ HELP
} else {
$output->writeln($this->formatLines($buf), ShellOutput::NUMBER_LINES);
}
return 0;
}
/**

View File

@@ -45,5 +45,7 @@ HELP
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->write(\sprintf('%c[2J%c[0;0f', 27, 27));
return 0;
}
}

View File

@@ -82,6 +82,8 @@ HELP
// Set some magic local variables
$this->setCommandScopeVariables($reflector);
return 0;
}
private function getManualDoc($reflector)

View File

@@ -76,6 +76,8 @@ HELP
if (\is_object($target)) {
$this->setCommandScopeVariables(new \ReflectionObject($target));
}
return 0;
}
/**

View File

@@ -104,6 +104,8 @@ class EditCommand extends Command implements ContextAware
if ($execute) {
$this->getApplication()->addInput($editedContent);
}
return 0;
}
/**

View File

@@ -94,5 +94,7 @@ class HelpCommand extends Command
}
$output->stopPaging();
}
return 0;
}
}

View File

@@ -140,11 +140,13 @@ HELP
} else {
$type = $input->getOption('no-numbers') ? 0 : ShellOutput::NUMBER_LINES;
if (!$highlighted) {
$type = $type | ShellOutput::OUTPUT_RAW;
$type = $type | OutputInterface::OUTPUT_RAW;
}
$output->page($highlighted ?: $history, $type);
}
return 0;
}
/**

View File

@@ -142,6 +142,8 @@ HELP
if ($reflector !== null) {
$this->setCommandScopeVariables($reflector);
}
return 0;
}
/**

View File

@@ -138,6 +138,8 @@ HELP
$output->page($this->presenter->present($nodes, $depth));
$this->context->setReturnValue($nodes);
return 0;
}
/**

View File

@@ -37,5 +37,7 @@ class PsyVersionCommand extends Command
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln($this->getApplication()->getVersion());
return 0;
}
}

View File

@@ -18,7 +18,6 @@ use Psy\Exception\RuntimeException;
use Psy\Formatter\CodeFormatter;
use Psy\Formatter\SignatureFormatter;
use Psy\Input\CodeArgument;
use Psy\Output\ShellOutput;
use Symfony\Component\Console\Formatter\OutputFormatter;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
@@ -99,11 +98,15 @@ HELP
throw new \InvalidArgumentException('Too many arguments (supply either "target" or "--ex")');
}
return $this->writeExceptionContext($input, $output);
$this->writeExceptionContext($input, $output);
return 0;
}
if ($input->getArgument('target')) {
return $this->writeCodeContext($input, $output);
$this->writeCodeContext($input, $output);
return 0;
}
throw new RuntimeException('Not enough arguments (missing: "target")');
@@ -117,7 +120,7 @@ HELP
$this->setCommandScopeVariables($reflector);
try {
$output->page(CodeFormatter::format($reflector, $this->colorMode), ShellOutput::OUTPUT_RAW);
$output->page(CodeFormatter::format($reflector, $this->colorMode), OutputInterface::OUTPUT_RAW);
} catch (RuntimeException $e) {
$output->writeln(SignatureFormatter::format($reflector));
throw $e;
@@ -216,7 +219,7 @@ HELP
return;
}
$output->write($this->getHighlighter()->getCodeSnippet($code, $line, 5, 5), ShellOutput::OUTPUT_RAW);
$output->write($this->getHighlighter()->getCodeSnippet($code, $line, 5, 5), false, OutputInterface::OUTPUT_RAW);
}
private function getHighlighter()

View File

@@ -118,6 +118,8 @@ HELP
$sudoCode = $this->printer->prettyPrint($nodes);
$shell = $this->getApplication();
$shell->addCode($sudoCode, !$shell->hasCode());
return 0;
}
/**

View File

@@ -105,6 +105,8 @@ HELP
$shell = $this->getApplication();
$shell->addCode($throwCode, !$shell->hasCode());
return 0;
}
/**

View File

@@ -106,6 +106,8 @@ HELP
$output->writeln(\sprintf(self::AVG_RESULT_MSG, $total / $num, $median, $total));
}
return 0;
}
/**

View File

@@ -74,6 +74,8 @@ HELP
$this->filter->bind($input);
$trace = $this->getBacktrace(new \Exception(), $input->getOption('num'), $input->getOption('include-psy'));
$output->page($trace, ShellOutput::NUMBER_LINES);
return 0;
}
/**

View File

@@ -14,7 +14,6 @@ namespace Psy\Command;
use JakubOnderka\PhpConsoleHighlighter\Highlighter;
use Psy\Configuration;
use Psy\ConsoleColorFactory;
use Psy\Output\ShellOutput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
@@ -123,8 +122,10 @@ HELP
$output->writeln('');
$output->writeln(\sprintf('From <info>%s:%s</info>:', $this->replaceCwd($info['file']), $info['line']));
$output->writeln('');
$output->write($highlighter->getCodeSnippet($contents, $info['line'], $num, $num), ShellOutput::OUTPUT_RAW);
$output->write($highlighter->getCodeSnippet($contents, $info['line'], $num, $num), false, OutputInterface::OUTPUT_RAW);
$output->stopPaging();
return 0;
}
/**

View File

@@ -121,5 +121,7 @@ HELP
}
} while ($exception = $exception->getPrevious());
$output->stopPaging();
return 0;
}
}

View File

@@ -19,13 +19,13 @@ use Psy\Readline\GNUReadline;
use Psy\Readline\HoaConsole;
use Psy\Readline\Libedit;
use Psy\Readline\Readline;
use Psy\Readline\Transient;
use Psy\TabCompletion\AutoCompleter;
use Psy\VarDumper\Presenter;
use Psy\VersionUpdater\Checker;
use Psy\VersionUpdater\GitHubChecker;
use Psy\VersionUpdater\IntervalChecker;
use Psy\VersionUpdater\NoopChecker;
use Symfony\Component\Console\Output\OutputInterface;
/**
* The Psy Shell configuration.
@@ -823,7 +823,7 @@ class Configuration
{
if (!isset($this->output)) {
$this->output = new ShellOutput(
ShellOutput::VERBOSITY_NORMAL,
OutputInterface::VERBOSITY_NORMAL,
$this->getOutputDecorated(),
null,
$this->getPager()

View File

@@ -21,7 +21,6 @@ use Psy\ExecutionLoop\ProcessForker;
use Psy\ExecutionLoop\RunkitReloader;
use Psy\Input\ShellInput;
use Psy\Input\SilentInput;
use Psy\Output\ShellOutput;
use Psy\TabCompletion\Matcher;
use Psy\VarDumper\PresenterAware;
use Symfony\Component\Console\Application;
@@ -47,7 +46,7 @@ use Symfony\Component\Console\Output\OutputInterface;
*/
class Shell extends Application
{
const VERSION = 'v0.9.9';
const VERSION = 'v0.9.12';
const PROMPT = '>>> ';
const BUFF_PROMPT = '... ';
@@ -372,7 +371,7 @@ class Shell extends Application
do {
// reset output verbosity (in case it was altered by a subcommand)
$this->output->setVerbosity(ShellOutput::VERBOSITY_VERBOSE);
$this->output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
$input = $this->readline();
@@ -931,7 +930,7 @@ class Shell extends Application
// Incremental flush
if ($out !== '' && !$isCleaning) {
$this->output->write($out, false, ShellOutput::OUTPUT_RAW);
$this->output->write($out, false, OutputInterface::OUTPUT_RAW);
$this->outputWantsNewline = (\substr($out, -1) !== "\n");
$this->stdoutBuffer .= $out;
}