Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Config_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -1035,10 +1035,9 @@
*
* @param string $name
* @param string $type
* @param string $type
* @param array<array{name: string, value: mixed, type: string}> $values
* @param string $wp_config_file_name Config file name
* @return string The value of the requested constant or variable as defined in the wp-config.php file; if the
* requested constant or variable is not defined then the function will print an error and exit.
* @return mixed|null Original PHP value from wp-config.php or null if not found.
*/
private function return_value( $name, $type, $values, $wp_config_file_name ) {
$results = [];
Expand Down Expand Up @@ -1196,7 +1195,7 @@
$wp_config_file_name
);

return $value;

Check failure on line 1198 in src/Config_Command.php

View workflow job for this annotation

GitHub Actions / code-quality / PHPStan

Method Config_Command::get_value() should return string but returns mixed.
}

/**
Expand Down
Loading