8000 Update src/Symfony/Component/Security/Http/RateLimiter/DefaultLoginRa… · symfony/symfony@589e497 · GitHub
[go: up one dir, main page]

Skip to content

Commit 589e497

Browse files
Spomkymtarld
andauthored
Update src/Symfony/Component/Security/Http/RateLimiter/DefaultLoginRateLimiter.php
Co-authored-by: Mathias Arlaud <mathias.arlaud@gmail.com>
1 parent ea22bba commit 589e497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Http/RateLimiter/DefaultLoginRateLimiter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class DefaultLoginRateLimiter extends AbstractRequestRateLimiter
3535
*/
3636
public function __construct(RateLimiterFactory $globalFactory, RateLimiterFactory $localFactory, #[\SensitiveParameter] string $secret = '')
3737
{
38-
if (!$secret) {
38+
if ('' === $secret) {
3939
trigger_deprecation('symfony/security-http', '6.4', 'Calling "%s()" with an empty secret is deprecated. A non-empty secret will be mandatory in version 7.0.', __METHOD__);
4040
// throw new \Symfony\Component\Security\Core\Exception\InvalidArgumentException('A non-empty secret is required.');
4141
}

0 commit comments

Comments
 (0)
0