Skip to content

Commit 88a70fa

Browse files
committed
Apply fixes
1 parent 0232a73 commit 88a70fa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.readme-partials/USING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ The following environment variables can be set to override the default database
202202
- `WP_CLI_TEST_DBUSER` is the user that the tests run under (defaults to "wp_cli_test").
203203
- `WP_CLI_TEST_DBPASS` is the password to use for the above user (defaults to "password1").
204204
- `WP_CLI_TEST_DBTYPE` is the database engine type to use, i.e. "sqlite" for running tests on SQLite instead of MySQL (defaults to "mysql").
205+
- `WP_CLI_TEST_OBJECT_CACHE` is the persistent object cache backend to use. Only supports "sqlite".
205206

206207
Environment variables can be set for the whole session via the following syntax: `export WP_CLI_TEST_DBNAME=custom_db`.
207208

src/Context/FeatureContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ public function install_wp( $subdir = '', $version = '' ): void {
16531653

16541654
if ( 'sqlite' === getenv( 'WP_CLI_TEST_OBJECT_CACHE' ) ) {
16551655
// Derive a deterministic cache key salt from the install cache directory and subdir
1656-
$salt = md5( self::$install_cache_dir . '/' . $subdir );
1656+
$salt = md5( self::$install_cache_dir . '/' . $subdir );
16571657
$config_extra_php .= "define( 'WP_CACHE_KEY_SALT', '" . $salt . "' );\n";
16581658
}
16591659

@@ -1969,7 +1969,7 @@ private static function dir_diff_copy( $upd_dir, $src_dir, $cop_dir ): void {
19691969
continue; // File vanished before it could be copied.
19701970
} else {
19711971
if ( ! is_dir( dirname( $cop_file ) ) ) {
1972-
@mkdir( dirname( $cop_file ), 0777, true );
1972+
mkdir( dirname( $cop_file ), 0777, true );
19731973
}
19741974
if ( ! copy( $upd_file, $cop_file ) ) {
19751975
$error = error_get_last();

0 commit comments

Comments
 (0)