Skip to content

Commit d4fee17

Browse files
committed
Changed private static array-properties to const static properties newly introduced in 5.1
1 parent a35ccc7 commit d4fee17

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
@@ -35,7 +35,7 @@
3535
*/
3636
class RegisterGlobalSecurityEventListenersPass implements CompilerPassInterface
3737
{
38-
private static $eventBubblingEvents = [
38+
private const EVENT_BUBBLING_EVENTS = [
3939
CheckPassportEvent::class,
4040
LoginFailureEvent::class,
4141
LoginSuccessEvent::class,
@@ -73,7 +73,7 @@ public function process(ContainerBuilder $container)
7373
}
7474

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

0 commit comments

Comments
 (0)