Skip to content

Commit 45bcc31

Browse files
committed
tests
1 parent a8112e7 commit 45bcc31

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
symfony-version: 5.*
8080
dependencies: lowest
8181
- php: '8.0'
82-
symfony-version: 6.*
82+
symfony-version: 6.0.*
8383
dependencies: lowest
8484
- php: '8.2'
8585
symfony-version: 7.*

tests/End2End/App/Kernel.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace Sentry\SentryBundle\Tests\End2End\App;
66

7+
use Composer\InstalledVersions;
8+
use Composer\Semver\VersionParser;
79
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
810
use Symfony\Component\Config\Loader\LoaderInterface;
911
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -47,7 +49,9 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
4749
if (self::VERSION_ID >= 50400 && self::VERSION_ID <= 60000) {
4850
// Check if class for Messenger is present (component symfony/messenger is not mandatory)
4951
if (interface_exists(MessageBusInterface::class)) {
50-
$loader->load(__DIR__ . '/deprecations_for_54.yml');
52+
if (InstalledVersions::satisfies(new VersionParser(), 'symfony/messenger', '>=5.4')) {
53+
$loader->load(__DIR__ . '/deprecations_for_54.yml');
54+
}
5155
}
5256
}
5357

0 commit comments

Comments
 (0)