Skip to content

Commit 9185651

Browse files
committed
Fix prefer-lowest in CI
1 parent 82c7021 commit 9185651

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

phpstan-baseline.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ parameters:
226226
path: test/DependencyInjection/SentryExtensionTest.php
227227

228228
-
229-
message: "#^Method Sentry\\\\SentryBundle\\\\Test\\\\End2End\\\\App\\\\Kernel\\:\\:build\\(\\) has no return typehint specified\\.$#"
229+
message: "#^Comparison operation \"\\>\\=\" between 50102 and 40300 is always true\\.$#"
230230
count: 1
231231
path: test/End2End/App/Kernel.php
232232

test/End2End/App/Kernel.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,28 @@ class Kernel extends SymfonyKernel
1313
/**
1414
* @return BundleInterface[]
1515
*/
16-
public function registerBundles()
16+
public function registerBundles(): array
1717
{
18-
$bundles = [
18+
return [
1919
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
2020
new \Symfony\Bundle\MonologBundle\MonologBundle(),
2121
new \Sentry\SentryBundle\SentryBundle(),
2222
];
23-
24-
return $bundles;
2523
}
2624

2725
public function registerContainerConfiguration(LoaderInterface $loader): void
2826
{
2927
$loader->load(__DIR__ . '/config.yml');
3028

31-
if (interface_exists(MessageBusInterface::class)) {
29+
if (interface_exists(MessageBusInterface::class) && self::VERSION_ID >= 40300) {
3230
$loader->load(__DIR__ . '/messenger.yml');
3331
}
3432
}
3533

36-
protected function build(ContainerBuilder $container)
34+
protected function build(ContainerBuilder $container): void
3735
{
3836
$container->setParameter('routing_config_dir', __DIR__);
37+
3938
parent::build($container);
4039
}
4140
}

0 commit comments

Comments
 (0)