diff --git a/includes/Checker/Checks/Abstract_PHP_CodeSniffer_Check.php b/includes/Checker/Checks/Abstract_PHP_CodeSniffer_Check.php index 23b1bcdc1..8c98e01a1 100644 --- a/includes/Checker/Checks/Abstract_PHP_CodeSniffer_Check.php +++ b/includes/Checker/Checks/Abstract_PHP_CodeSniffer_Check.php @@ -100,7 +100,7 @@ final public function run( Check_Result $result ) { // Override installed_paths to load custom sniffs. if ( isset( $args['installed_paths'] ) && is_array( $args['installed_paths'] ) ) { - Config::setConfigData( 'installed_paths', implode( ',', $args['installed_paths'] ) ); + Config::setConfigData( 'installed_paths', implode( ',', $args['installed_paths'] ), true ); } // Create the default arguments for PHPCS. @@ -121,7 +121,7 @@ final public function run( Check_Result $result ) { } // Reset installed_paths. - Config::setConfigData( 'installed_paths', $installed_paths ); + Config::setConfigData( 'installed_paths', $installed_paths, true ); // Restore original arguments. $_SERVER['argv'] = $orig_cmd_args;