Skip to content

Commit 590062a

Browse files
texboysivaschenko
andauthored
Update lib/internal/Magento/Framework/Encryption/Helper/Security.php
Thanks! Great suggestion! Co-authored-by: Sergii Ivashchenko <serg.ivashchenko@gmail.com>
1 parent d13f9f0 commit 590062a

File tree

1 file changed

+1
-3
lines changed
  • lib/internal/Magento/Framework/Encryption/Helper

1 file changed

+1
-3
lines changed

lib/internal/Magento/Framework/Encryption/Helper/Security.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ class Security
2121
*/
2222
public static function compareStrings($expected, $actual)
2323
{
24-
$expected = (string) $expected;
25-
$actual = (string) $actual;
26-
return hash_equals($expected, $actual);
24+
return hash_equals((string) $expected, (string) $actual);
2725
}
2826
}

0 commit comments

Comments
 (0)