Skip to content

Commit 349bc2e

Browse files
Merge branch '5.1' into 5.2
* 5.1: Changed private static array-properties to const static properties newly introduced in 5.1
2 parents 950371a + d4fee17 commit 349bc2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/Compiler/RegisterGlobalSecurityEventListenersPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737
class RegisterGlobalSecurityEventListenersPass implements CompilerPassInterface
3838
{
39-
private static $eventBubblingEvents = [
39+
private const EVENT_BUBBLING_EVENTS = [
4040
CheckPassportEvent::class,
4141
LoginFailureEvent::class,
4242
LoginSuccessEvent::class,
@@ -75,7 +75,7 @@ public function process(ContainerBuilder $container)
7575
}
7676

7777
$methodCallArguments = $methodCall[1];
78-
if (!\in_array($methodCallArguments[0], self::$eventBubblingEvents, true)) {
78+
if (!\in_array($methodCallArguments[0], self::EVENT_BUBBLING_EVENTS, true)) {
7979
continue;
8080
}
8181

0 commit comments

Comments
 (0)