File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ parameters:
226
226
path : test/DependencyInjection/SentryExtensionTest.php
227
227
228
228
-
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 \\ .$#"
230
230
count : 1
231
231
path : test/End2End/App/Kernel.php
232
232
Original file line number Diff line number Diff line change @@ -13,29 +13,28 @@ class Kernel extends SymfonyKernel
13
13
/**
14
14
* @return BundleInterface[]
15
15
*/
16
- public function registerBundles ()
16
+ public function registerBundles (): array
17
17
{
18
- $ bundles = [
18
+ return [
19
19
new \Symfony \Bundle \FrameworkBundle \FrameworkBundle (),
20
20
new \Symfony \Bundle \MonologBundle \MonologBundle (),
21
21
new \Sentry \SentryBundle \SentryBundle (),
22
22
];
23
-
24
- return $ bundles ;
25
23
}
26
24
27
25
public function registerContainerConfiguration (LoaderInterface $ loader ): void
28
26
{
29
27
$ loader ->load (__DIR__ . '/config.yml ' );
30
28
31
- if (interface_exists (MessageBusInterface::class)) {
29
+ if (interface_exists (MessageBusInterface::class) && self :: VERSION_ID >= 40300 ) {
32
30
$ loader ->load (__DIR__ . '/messenger.yml ' );
33
31
}
34
32
}
35
33
36
- protected function build (ContainerBuilder $ container )
34
+ protected function build (ContainerBuilder $ container ): void
37
35
{
38
36
$ container ->setParameter ('routing_config_dir ' , __DIR__ );
37
+
39
38
parent ::build ($ container );
40
39
}
41
40
}
You can’t perform that action at this time.
0 commit comments