This commit is contained in:
2025-05-12 14:25:25 +02:00
parent ab2db755ef
commit 9e378ca2b7
2719 changed files with 46505 additions and 60181 deletions

View File

@@ -29,8 +29,8 @@ use Symfony\Component\Console\Output\OutputInterface;
*/
class ThrowUpCommand extends Command
{
private $parser;
private $printer;
private CodeArgumentParser $parser;
private Printer $printer;
/**
* {@inheritdoc}
@@ -82,7 +82,7 @@ HELP
$throwStmt = new Expression(new Throw_(new New_(new FullyQualifiedName(ThrowUpException::class), $args)));
$throwCode = $this->printer->prettyPrint([$throwStmt]);
$shell = $this->getApplication();
$shell = $this->getShell();
$shell->addCode($throwCode, !$shell->hasCode());
return 0;
@@ -99,7 +99,7 @@ HELP
*
* @return Arg[]
*/
private function prepareArgs(string $code = null): array
private function prepareArgs(?string $code = null): array
{
if (!$code) {
// Default to last exception if nothing else was supplied