FIX: DEPRECATED

This commit is contained in:
Juan Pablo Vial
2025-05-12 18:07:14 -04:00
parent 1597657f0e
commit 35386724b3
12 changed files with 13 additions and 13 deletions

View File

@ -7,7 +7,7 @@ use Symfony\Component\Console;
class Command extends Console\Command\Command 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); parent::__construct($name);
} }

View File

@ -10,8 +10,8 @@ use Incoviba\Common\Alias\Command;
)] )]
class Comunas extends 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()}"); $this->logger->debug("Running {$this->getName()}");
$uri = '/api/direcciones/region/13/comunas'; $uri = '/api/direcciones/region/13/comunas';
$output->writeln("GET {$uri}"); $output->writeln("GET {$uri}");

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)] )]
class Update extends 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()}"); $this->logger->debug("Running {$this->getName()}");
$uri = '/api/contabilidad/cartolas/update'; $uri = '/api/contabilidad/cartolas/update';

View File

@ -12,7 +12,7 @@ use Incoviba\Common\Alias\Command;
)] )]
class Full extends 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); parent::__construct($client, $logger, $name);
} }

View File

@ -12,7 +12,7 @@ use Incoviba\Common\Alias\Command;
)] )]
class IPC extends 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()}"); $this->logger->debug("Running {$this->getName()}");
$lastMonth = (new DateTimeImmutable())->sub(new DateInterval('P1M')); $lastMonth = (new DateTimeImmutable())->sub(new DateInterval('P1M'));

View File

@ -11,7 +11,7 @@ use Incoviba\Common\Alias\Command;
)] )]
class UF extends 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()}"); $this->logger->debug("Running {$this->getName()}");
$now = new DateTimeImmutable(); $now = new DateTimeImmutable();

View File

@ -11,7 +11,7 @@ use Incoviba\Common\Alias\Command;
)] )]
class Update extends 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()}"); $this->logger->debug("Running {$this->getName()}");
$url = '/api/money/ufs'; $url = '/api/money/ufs';

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)] )]
class Activos extends 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()}"); $this->logger->debug("Running {$this->getName()}");
$uri = '/api/proyectos'; $uri = '/api/proyectos';

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)] )]
class Vigentes extends 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()}"); $this->logger->debug("Running {$this->getName()}");
$uri = '/api/ventas/cierres/vigentes'; $uri = '/api/ventas/cierres/vigentes';

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)] )]
class Hoy extends 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()}"); $this->logger->debug("Running {$this->getName()}");
$uri = '/api/ventas/cuotas/hoy'; $uri = '/api/ventas/cuotas/hoy';

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)] )]
class Pendientes extends 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()}"); $this->logger->debug("Running {$this->getName()}");
$uri = '/api/ventas/cuotas/pendiente'; $uri = '/api/ventas/cuotas/pendiente';

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)] )]
class PorVencer extends 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()}"); $this->logger->debug("Running {$this->getName()}");
$uri = '/api/ventas/cuotas/vencer'; $uri = '/api/ventas/cuotas/vencer';