FIX: DEPRECATED
This commit is contained in:
@ -7,7 +7,7 @@ use Symfony\Component\Console;
|
||||
|
||||
class Command extends Console\Command\Command
|
||||
{
|
||||
public function __construct(protected ClientInterface $client, protected LoggerInterface $logger, string $name = null)
|
||||
public function __construct(protected ClientInterface $client, protected LoggerInterface $logger, ?string $name = null)
|
||||
{
|
||||
parent::__construct($name);
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class Comunas extends Command
|
||||
{
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$uri = '/api/direcciones/region/13/comunas';
|
||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class Update extends Command
|
||||
{
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$uri = '/api/contabilidad/cartolas/update';
|
||||
|
@ -12,7 +12,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class Full extends Command
|
||||
{
|
||||
public function __construct(ClientInterface $client, LoggerInterface $logger, protected array $commandsList, string $name = null)
|
||||
public function __construct(ClientInterface $client, LoggerInterface $logger, protected array $commandsList, ?string $name = null)
|
||||
{
|
||||
parent::__construct($client, $logger, $name);
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class IPC extends Command
|
||||
{
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$lastMonth = (new DateTimeImmutable())->sub(new DateInterval('P1M'));
|
||||
|
@ -11,7 +11,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class UF extends Command
|
||||
{
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$now = new DateTimeImmutable();
|
||||
|
@ -11,7 +11,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class Update extends Command
|
||||
{
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$url = '/api/money/ufs';
|
||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class Activos extends Command
|
||||
{
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$uri = '/api/proyectos';
|
||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class Vigentes extends Command
|
||||
{
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$uri = '/api/ventas/cierres/vigentes';
|
||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class Hoy extends Command
|
||||
{
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$uri = '/api/ventas/cuotas/hoy';
|
||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class Pendientes extends Command
|
||||
{
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$uri = '/api/ventas/cuotas/pendiente';
|
||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
||||
)]
|
||||
class PorVencer extends Command
|
||||
{
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$uri = '/api/ventas/cuotas/vencer';
|
||||
|
Reference in New Issue
Block a user