Skip to content

Commit 6fd9f86

Browse files
committed
Passwords: constants PASSWORD_* are strings since PHP 7.4 [Closes #35]
1 parent 10230ba commit 6fd9f86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Security/Passwords.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Passwords
1919
{
2020
use Nette\SmartObject;
2121

22-
/** @var int */
22+
/** @var int|string string since PHP 7.4 */
2323
private $algo;
2424

2525
/** @var array */
@@ -29,7 +29,7 @@ class Passwords
2929
/**
3030
* See https://php.net/manual/en/password.constants.php
3131
*/
32-
public function __construct(int $algo = PASSWORD_DEFAULT, array $options = [])
32+
public function __construct($algo = PASSWORD_DEFAULT, array $options = [])
3333
{
3434
$this->algo = $algo;
3535
$this->options = $options;

0 commit comments

Comments
 (0)