Code quality improvements powered by PHPStan by swissspidy · Pull Request #6019 · wp-cli/wp-cli

added 7 commits

November 24, 2024 17:44
At this point the foreach can be replaced with a simple implode too
The variable is immediately overwritten further down

@swissspidy

@swissspidy

The array returned by `error_get_last` always has this key
The `WP_CLI::error` call above always terminates execution
`$explanation` is never empty at this point
The variable is always set
This method never returns false
The `RequestsLibrary::get_class_name` method never throws

@swissspidy

There is an early return above if `self::$logger` isn't set

@swissspidy

@swissspidy

@swissspidy

@swissspidy

mrsdizzie

@swissspidy

mrsdizzie