100% type coverage for psalm
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-07-28 12:12:47 +00:00
parent 14b2155595
commit 1d898e350b
6 changed files with 25 additions and 17 deletions

View File

@ -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;

View File

@ -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;
}