Page MenuHomeWickedGov Phorge

CommandCompatibility.php
No OneTemporary

Size
872 B
Referenced Files
None
Subscribers
None

CommandCompatibility.php

<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Tools\Console\Command;
use ReflectionMethod;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
if ((new ReflectionMethod(Command::class, 'execute'))->hasReturnType()) {
/** @internal */
trait CommandCompatibility
{
protected function execute(InputInterface $input, OutputInterface $output): int
{
return $this->doExecute($input, $output);
}
}
} else {
/** @internal */
trait CommandCompatibility
{
/**
* {@inheritDoc}
*
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
return $this->doExecute($input, $output);
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 21, 21:04 (1 d, 11 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6e/cc/e7a3cb1bf62b0dc3d68639ab8294
Default Alt Text
CommandCompatibility.php (872 B)

Event Timeline