Skip to content

Commit 9696705

Browse files
authored
standard: Define PASSWORD_DEFAULT in terms of PASSWORD_BCRYPT (#24078)
Instead of copying the constant’s value, we can just refer to the constant, making the stub more self-explanatory.
1 parent a8135c8 commit 9696705

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎ext/standard/password.stub.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
/** @generate-class-entries */
44

5-
const PASSWORD_DEFAULT = "2y";
65
const PASSWORD_BCRYPT = "2y";
76
/**
87
* @var int
@@ -30,3 +29,6 @@
3029
*/
3130
const PASSWORD_ARGON2_DEFAULT_THREADS = UNKNOWN;
3231
#endif
32+
33+
/** @var string */
34+
const PASSWORD_DEFAULT = PASSWORD_BCRYPT;

‎ext/standard/password_arginfo.h‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)