mirror of
https://github.com/doctrine/mongodb-odm.git
synced 2026-03-23 22:42:15 +01:00
31 lines
651 B
PHP
31 lines
651 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\ODM\MongoDB\Tools\Console\Command\Schema;
|
|
|
|
use ReflectionMethod;
|
|
use Symfony\Component\Console\Command\Command;
|
|
|
|
// Symfony 8
|
|
if ((new ReflectionMethod(Command::class, 'configure'))->hasReturnType()) {
|
|
/** @internal */
|
|
trait AbstractCommandCompatibility
|
|
{
|
|
protected function configure(): void
|
|
{
|
|
$this->configureCommonOptions();
|
|
}
|
|
}
|
|
} else {
|
|
/** @internal */
|
|
trait AbstractCommandCompatibility
|
|
{
|
|
/** @return void */
|
|
protected function configure()
|
|
{
|
|
$this->configureCommonOptions();
|
|
}
|
|
}
|
|
}
|