Вход Регистрация
Файл: vendor/doctrine/dbal/src/Tools/Console/Command/CommandCompatibility.php
Строк: 54
<?php

declare(strict_types=1);

namespace 
DoctrineDBALToolsConsoleCommand;

use 
ReflectionMethod;
use 
SymfonyComponentConsoleCommandCommand;
use 
SymfonyComponentConsoleInputInputInterface;
use 
SymfonyComponentConsoleOutputOutputInterface;

if ((new 
ReflectionMethod(Command::class, 'execute'))->hasReturnType()) {
    
/** @internal */
    
trait CommandCompatibility
    
{
        protected function 
execute(InputInterface $inputOutputInterface $output): int
        
{
            return 
$this->doExecute($input$output);
        }
    }
} else {
    
/** @internal */
    
trait CommandCompatibility
    
{
        
/**
         * {@inheritDoc}
         *
         * @return int
         */
        
protected function execute(InputInterface $inputOutputInterface $output)
        {
            return 
$this->doExecute($input$output);
        }
    }
}
Онлайн: 2
Реклама