Skip to content

Commit a8d2c4b

Browse files
committed
fix code style and php8.2 sf7 dependencies
1 parent d209c4a commit a8d2c4b

File tree

5 files changed

+12
-20
lines changed

5 files changed

+12
-20
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
extensions: mongodb, redis, :xdebug
2424
ini-values: memory_limit=2048M
2525

26-
- run: php ./bin/fix-symfony-version.php "6.2.*"
26+
- run: php ./bin/fix-symfony-version.php "5.4.*"
2727

2828
- uses: "ramsey/composer-install@v1"
2929

@@ -63,7 +63,7 @@ jobs:
6363
extensions: mongodb, redis, :xdebug
6464
ini-values: memory_limit=2048M
6565

66-
- run: php ./bin/fix-symfony-version.php "6.2.*"
66+
- run: php ./bin/fix-symfony-version.php "5.4.*"
6767

6868
- run: composer update --no-progress
6969

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
"ext-amqp": "1.9.3",
126126
"ext-gearman": "2.0.3",
127127
"ext-rdkafka": "4.0",
128-
"ext-mongodb": "1.5",
129128
"ext-bcmath": "1",
130129
"ext-mbstring": "1",
131130
"ext-mongo": "1.6.14",

pkg/enqueue-bundle/Tests/Functional/App/CustomAppKernel.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\Component\DependencyInjection\ContainerBuilder;
88
use Symfony\Component\Filesystem\Filesystem;
99
use Symfony\Component\HttpKernel\Kernel;
10-
use Symfony\Component\Routing\RouteCollectionBuilder;
10+
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1111

1212
class CustomAppKernel extends Kernel
1313
{
@@ -64,9 +64,6 @@ protected function getContainerClass(): string
6464
return parent::getContainerClass().'Custom'.$this->enqueueConfigId;
6565
}
6666

67-
/**
68-
* {@inheritdoc}
69-
*/
7067
protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader)
7168
{
7269
if (self::VERSION_ID < 60000) {
@@ -78,10 +75,7 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load
7875
$c->loadFromExtension('enqueue', $this->enqueueConfig);
7976
}
8077

81-
/**
82-
* {@inheritdoc}
83-
*/
84-
protected function configureRoutes(RouteCollectionBuilder $routes)
78+
protected function configureRoutes(RoutingConfigurator $routes)
8579
{
8680
}
8781
}

pkg/enqueue-bundle/Tests/Functional/UseCasesTest.php

+6-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Interop\Queue\Message;
1212
use Interop\Queue\Queue;
1313
use Symfony\Component\Console\Tester\CommandTester;
14-
use Symfony\Component\Filesystem\Filesystem;
1514

1615
/**
1716
* @group functional
@@ -147,12 +146,12 @@ public function provideEnqueueConfigs()
147146
],
148147
]];
149148

150-
//
151-
// yield 'gps' => [[
152-
// 'transport' => [
153-
// 'dsn' => getenv('GPS_DSN'),
154-
// ],
155-
// ]];
149+
//
150+
// yield 'gps' => [[
151+
// 'transport' => [
152+
// 'dsn' => getenv('GPS_DSN'),
153+
// ],
154+
// ]];
156155
}
157156

158157
/**

pkg/enqueue/Tests/Symfony/Consumption/ConfigurableConsumeCommandTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ public function testShouldExecuteConsumptionWithSeveralCustomQueues()
204204

205205
public function testShouldExecuteConsumptionWhenProcessorImplementsQueueSubscriberInterface()
206206
{
207-
$processor = new class() implements Processor, QueueSubscriberInterface {
208-
public function process(InteropMessage $message, Context $context)
207+
$processor = new class implements Processor, QueueSubscriberInterface {
208+
public function process(InteropMessage $message, Context $context): void
209209
{
210210
}
211211

0 commit comments

Comments
 (0)