diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2014-04-15 07:44:12 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2014-04-15 07:44:12 +0200 |
commit | 3c065747901d8ba53056cb769cb1ef986e39c1d0 (patch) | |
tree | 3540ae13ca5bf1b473c9ba7bcc17a3221a4ba981 /Core/Encoder/MessageDigestPasswordEncoder.php | |
parent | e5960cb3c8dc2c885c4fe784e957f8d1286f3fc7 (diff) | |
parent | c9dff33575d2eb04e34c31167f5fba8bf3f355d6 (diff) | |
download | symfony-security-3c065747901d8ba53056cb769cb1ef986e39c1d0.zip symfony-security-3c065747901d8ba53056cb769cb1ef986e39c1d0.tar.gz symfony-security-3c065747901d8ba53056cb769cb1ef986e39c1d0.tar.bz2 |
minor #10701 Made types used by Symfony compatible with the ones of Hack (fabpot)
This PR was merged into the 2.3 branch.
Discussion
----------
Made types used by Symfony compatible with the ones of Hack
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
PHP supports several ways to express types: like Boolean/bool or integer/int. Hack only supports one of them, so this PR proposes to use the Hack type to make Symfony a bit more "compatible" with Hack (gradual upgrade ;)).
Commits
-------
3c9c10f made phpdoc types consistent with those defined in Hack
0555b7f made types consistent with those defined in Hack
Diffstat (limited to 'Core/Encoder/MessageDigestPasswordEncoder.php')
-rw-r--r-- | Core/Encoder/MessageDigestPasswordEncoder.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Core/Encoder/MessageDigestPasswordEncoder.php b/Core/Encoder/MessageDigestPasswordEncoder.php index a7e5546..9aa240a 100644 --- a/Core/Encoder/MessageDigestPasswordEncoder.php +++ b/Core/Encoder/MessageDigestPasswordEncoder.php @@ -28,8 +28,8 @@ class MessageDigestPasswordEncoder extends BasePasswordEncoder * Constructor. * * @param string $algorithm The digest algorithm to use - * @param Boolean $encodeHashAsBase64 Whether to base64 encode the password hash - * @param integer $iterations The number of iterations to use to stretch the password hash + * @param bool $encodeHashAsBase64 Whether to base64 encode the password hash + * @param int $iterations The number of iterations to use to stretch the password hash */ public function __construct($algorithm = 'sha512', $encodeHashAsBase64 = true, $iterations = 5000) { |