100% type coverage for psalm
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -81,7 +81,7 @@ class App
|
||||
*/
|
||||
public function getConfig(string $key): mixed
|
||||
{
|
||||
/** @var mixed */
|
||||
/** @var string|array<string, string> */
|
||||
$ret = $this->config->get($key);
|
||||
$this->logger->debug("Fetching configuration key", [$key, $ret]);
|
||||
return $ret;
|
||||
|
@ -14,7 +14,7 @@ use Exception;
|
||||
*
|
||||
* Installation of rclone is required.
|
||||
* Configuration of the mounts must be done before use.
|
||||
* Tested using rclone v1.53.3-DEV
|
||||
* Tested using rclone v1.62.2
|
||||
*/
|
||||
class Rclone
|
||||
{
|
||||
@ -97,7 +97,7 @@ class Rclone
|
||||
$options[] = $dest;
|
||||
|
||||
foreach ($additionalOptions as $key => $value) {
|
||||
$options[] = '--' . $key;
|
||||
$options[] = '--' . (string)$key;
|
||||
$options[] = $value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user