Changeset 61459 for trunk/tests/phpunit/includes/abstract-testcase.php
- Timestamp:
- 01/09/2026 11:45:46 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r61424 r61459 143 143 * Sets the bcrypt cost option for password hashing during tests. 144 144 * 145 * @param array $options The options for password hashing.146 * @param string |int $algorithm The algorithm to use for hashing. This is a string in PHP 7.4+ and an integer in PHP 7.3 and earlier.147 */ 148 public function wp_hash_password_options( array $options, $algorithm ): array {145 * @param array $options The options for password hashing. 146 * @param string $algorithm The algorithm to use for hashing. 147 */ 148 public function wp_hash_password_options( array $options, string $algorithm ): array { 149 149 if ( PASSWORD_BCRYPT === $algorithm ) { 150 150 $options['cost'] = 5; … … 1596 1596 } 1597 1597 1598 /*1599 * Compatibility check for PHP < 7.4, where array_merge() expects at least one array.1600 * See: https://3v4l.org/BIQMA1601 */1602 if ( array() === $matched_dirs ) {1603 return array();1604 }1605 1606 1598 return array_merge( ...$matched_dirs ); 1607 1599 }
Note: See TracChangeset
for help on using the changeset viewer.