Skip to content

Commit c98bbae

Browse files
authored
Merge branch 'main' into copilot/add-config-add-and-update-commands
2 parents 17e2b4b + 487dcf1 commit c98bbae

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/code-quality.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
branches:
77
- main
88
- master
9+
schedule:
10+
- cron: '17 2 * * *' # Run every day on a seemly random time.
911

1012
jobs:
1113
code-quality:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
],
1919
"require": {
20-
"wp-cli/wp-cli": "^2.12",
20+
"wp-cli/wp-cli": "^2.13",
2121
"wp-cli/wp-config-transformer": "^1.4.0"
2222
},
2323
"require-dev": {

src/Config_Command.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,10 +1231,9 @@ private static function fetch_remote_salts( $insecure = false ) {
12311231
*
12321232
* @param string $name
12331233
* @param string $type
1234-
* @param string $type
1234+
* @param array<array{name: string, value: mixed, type: string}> $values
12351235
* @param string $wp_config_file_name Config file name
1236-
* @return string The value of the requested constant or variable as defined in the wp-config.php file; if the
1237-
* requested constant or variable is not defined then the function will print an error and exit.
1236+
* @return mixed|null Original PHP value from wp-config.php or null if not found.
12381237
*/
12391238
private function return_value( $name, $type, $values, $wp_config_file_name ) {
12401239
$results = [];
@@ -1417,7 +1416,7 @@ private function parse_config_transformer_options( $assoc_args, $defaults = [] )
14171416
* @param $assoc_args
14181417
* @param $args
14191418
*
1420-
* @return string
1419+
* @return mixed
14211420
*/
14221421
protected function get_value( $assoc_args, $args ) {
14231422
$path = $this->get_config_path( $assoc_args );

0 commit comments

Comments
 (0)