Skip to content

Commit 4bdb995

Browse files
committed
[ALLI-10624] Fix CS and deprecation notices.
1 parent c00e3d2 commit 4bdb995

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ jobs:
1313
strategy:
1414
matrix:
1515
include:
16-
- php-version: 8.0
17-
- php-version: 8.1
1816
- php-version: 8.2
17+
- php-version: 8.3
1918

2019
steps:
2120
- name: checkout

src/Command/PurgeQueueCommand.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,20 @@
1212

1313
namespace PMG\PheanstalkBundle\Command;
1414

15+
use PMG\PheanstalkBundle\Service\QueueUtilities;
16+
use Symfony\Component\Console\Attribute\AsCommand;
1517
use Symfony\Component\Console\Command\Command;
1618
use Symfony\Component\Console\Input\InputArgument;
17-
use Symfony\Component\Console\Input\InputOption;
1819
use Symfony\Component\Console\Input\InputInterface;
20+
use Symfony\Component\Console\Input\InputOption;
1921
use Symfony\Component\Console\Output\OutputInterface;
20-
use Pheanstalk\PheanstalkInterface;
21-
use PMG\PheanstalkBundle\Service\QueueUtilities;
2222

2323
/**
2424
* Purge a single beanstalkd tube of jobs.
2525
*/
26+
#[AsCommand(name: 'pheanstalk:purge-queue')]
2627
final class PurgeQueueCommand extends Command
2728
{
28-
protected static $defaultName = 'pheanstalk:purge-queue';
29-
3029
public function __construct(private QueueUtilities $queueUtilities, $name=null)
3130
{
3231
parent::__construct($name);

src/Command/StatsCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
namespace PMG\PheanstalkBundle\Command;
1414

15+
use Symfony\Component\Console\Attribute\AsCommand;
1516
use Symfony\Component\Console\Command\Command;
1617
use Symfony\Component\Console\Input\InputArgument;
1718
use Symfony\Component\Console\Input\InputOption;
1819
use Symfony\Component\Console\Input\InputInterface;
1920
use Symfony\Component\Console\Output\OutputInterface;
20-
use Pheanstalk\PheanstalkInterface;
2121
use Pheanstalk\Exception\ServerException;
2222
use PMG\PheanstalkBundle\Service\StatsService;
2323

@@ -26,10 +26,9 @@
2626
*
2727
* @since 1.0
2828
*/
29+
#[AsCommand(name: 'pheanstalk:stats')]
2930
final class StatsCommand extends Command
3031
{
31-
protected static $defaultName = 'pheanstalk:stats';
32-
3332
/**
3433
* @var StatsService
3534
*/

src/DependencyInjection/PmgPheanstalkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class PmgPheanstalkExtension extends ConfigurableExtension
3737
/**
3838
* {@inheritdoc}
3939
*/
40-
protected function loadInternal(array $config, ContainerBuilder $container)
40+
protected function loadInternal(array $config, ContainerBuilder $container): void
4141
{
4242
$connections = [];
4343
foreach ($config['connections'] as $name => $connConfig) {

0 commit comments

Comments
 (0)