Skip to content

Commit

Permalink
[ALLI-10624] Fix CS and deprecation notices.
Browse files Browse the repository at this point in the history
  • Loading branch information
WebCu committed Jan 24, 2024
1 parent c00e3d2 commit 4bdb995
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ jobs:
strategy:
matrix:
include:
- php-version: 8.0
- php-version: 8.1
- php-version: 8.2
- php-version: 8.3

steps:
- name: checkout
Expand Down
9 changes: 4 additions & 5 deletions src/Command/PurgeQueueCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@

namespace PMG\PheanstalkBundle\Command;

use PMG\PheanstalkBundle\Service\QueueUtilities;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Pheanstalk\PheanstalkInterface;
use PMG\PheanstalkBundle\Service\QueueUtilities;

/**
* Purge a single beanstalkd tube of jobs.
*/
#[AsCommand(name: 'pheanstalk:purge-queue')]
final class PurgeQueueCommand extends Command
{
protected static $defaultName = 'pheanstalk:purge-queue';

public function __construct(private QueueUtilities $queueUtilities, $name=null)
{
parent::__construct($name);
Expand Down
5 changes: 2 additions & 3 deletions src/Command/StatsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

namespace PMG\PheanstalkBundle\Command;

use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Pheanstalk\PheanstalkInterface;
use Pheanstalk\Exception\ServerException;
use PMG\PheanstalkBundle\Service\StatsService;

Expand All @@ -26,10 +26,9 @@
*
* @since 1.0
*/
#[AsCommand(name: 'pheanstalk:stats')]
final class StatsCommand extends Command
{
protected static $defaultName = 'pheanstalk:stats';

/**
* @var StatsService
*/
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/PmgPheanstalkExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class PmgPheanstalkExtension extends ConfigurableExtension
/**
* {@inheritdoc}
*/
protected function loadInternal(array $config, ContainerBuilder $container)
protected function loadInternal(array $config, ContainerBuilder $container): void
{
$connections = [];
foreach ($config['connections'] as $name => $connConfig) {
Expand Down

0 comments on commit 4bdb995

Please sign in to comment.