Ran
|
Files
108
|
Run time
10s
|
Badge
Embed ▾
README BADGES
|
travis-ci
:sparkles: PHP 7.4: new NewPasswordAlgoConstantValues sniff > Password hashing algorithm identifiers are now nullable strings rather > than integers. > > * PASSWORD_DEFAULT was int 1; now is null > * PASSWORD_BCRYPT was int 1; now is string '2y' > * PASSWORD_ARGON2I was int 2; now is string 'argon2i' > * PASSWORD_ARGON2ID was int 3; now is string 'argon2id' > > Applications correctly using the constants PASSWORD_DEFAULT, > PASSWORD_BCRYPT, PASSWORD_ARGON2I, and PASSWORD_ARGON2ID will continue to function correctly. Refs: * https://wiki.php.net/rfc/password_registry * https://github.com/php/php-src/blob/86d751f69/UPGRADING#L131-L141 * https://github.com/php/php-src/commit/534df87c9 Includes unit tests. **Note**: while deprecated in name, it looks like the deprecation warning for use of the _constant value_ rather than the _constant_ has not been implemented. All the more reason, of course, that the sniff is necessary.
3904 of 4279 relevant lines covered (91.24%)
6.12 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|