Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit cfb5fbd

Browse files
author
Andrey Stadnik
authored
force param casting to string (#301)
Force param casting to string
1 parent c122b9b commit cfb5fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/Compiler/RememberMeServicesDecoratorCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function process(ContainerBuilder $container)
2626
// Find all remember-me listener definitions
2727
$prefixLength = \strlen(self::REMEMBER_ME_LISTENER_ID_PREFIX);
2828
foreach ($container->getDefinitions() as $definitionId => $definition) {
29-
if (self::REMEMBER_ME_LISTENER_ID_PREFIX === substr($definitionId, 0, $prefixLength)) {
29+
if (self::REMEMBER_ME_LISTENER_ID_PREFIX === substr((string) $definitionId, 0, $prefixLength)) {
3030
$this->decorateRememberMeServices($container, $definition);
3131
}
3232
}

0 commit comments

Comments
 (0)