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

Commit

Permalink
force param casting to string (#301)
Browse files Browse the repository at this point in the history
Force param casting to string
  • Loading branch information
Andrey Stadnik committed Sep 21, 2020
1 parent c122b9b commit cfb5fbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function process(ContainerBuilder $container)
// Find all remember-me listener definitions
$prefixLength = \strlen(self::REMEMBER_ME_LISTENER_ID_PREFIX);
foreach ($container->getDefinitions() as $definitionId => $definition) {
if (self::REMEMBER_ME_LISTENER_ID_PREFIX === substr($definitionId, 0, $prefixLength)) {
if (self::REMEMBER_ME_LISTENER_ID_PREFIX === substr((string) $definitionId, 0, $prefixLength)) {
$this->decorateRememberMeServices($container, $definition);
}
}
Expand Down

0 comments on commit cfb5fbd

Please sign in to comment.