Skip to content

Commit a378a9d

Browse files
committed
guard
1 parent fbf5b39 commit a378a9d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/End2End/App/Kernel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

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

7-
use Composer\InstalledVersions;
8-
use Composer\Semver\VersionParser;
97
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
108
use Symfony\Component\Config\Loader\LoaderInterface;
119
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -49,7 +47,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
4947
if (self::VERSION_ID >= 50400 && self::VERSION_ID <= 60000) {
5048
// Check if class for Messenger is present (component symfony/messenger is not mandatory)
5149
if (interface_exists(MessageBusInterface::class)) {
52-
if (InstalledVersions::satisfies(new VersionParser(), 'symfony/messenger', '>=5.4')) {
50+
if (class_exists(\Symfony\Component\Messenger\EventListener\ResetServicesListener::class)) {
5351
$loader->load(__DIR__ . '/deprecations_for_54.yml');
5452
}
5553
}

0 commit comments

Comments
 (0)