We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42e6c22 commit 2437031Copy full SHA for 2437031
1 file changed
src/Test/WebTestCase.php
@@ -33,9 +33,6 @@
33
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
34
use Symfony\Component\Security\Core\User\UserInterface;
35
36
-// Compatibility layer for Symfony 4.3+
37
-class_alias('Symfony\Bundle\FrameworkBundle\KernelBrowser', 'Symfony\Bundle\FrameworkBundle\Client');
38
-
39
/**
40
* @author Lea Haensenberger
41
* @author Lukas Kahwe Smith <smith@pooteeweet.org>
@@ -571,3 +568,8 @@ protected function tearDown(): void
571
568
parent::tearDown();
572
569
}
573
570
+
+// Compatibility layer for Symfony 4.3+
+if (class_exists('Symfony\Bundle\FrameworkBundle\KernelBrowser')) {
574
+ class_alias('Symfony\Bundle\FrameworkBundle\KernelBrowser', 'Symfony\Bundle\FrameworkBundle\Client');
575
+}
0 commit comments