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
{
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);
}

View File

@ -10,8 +10,8 @@ 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';
$output->writeln("GET {$uri}");

View File

@ -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';

View File

@ -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);
}

View File

@ -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'));

View File

@ -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();

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';