100% analysis in Psalm
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-07-05 15:00:31 +00:00
parent c1fb42c4ff
commit 50ae396000
2 changed files with 13 additions and 4 deletions

View File

@ -79,7 +79,10 @@ class Rclone
if (!$process->isSuccessful()) {
throw new Exception($process->getErrorOutput());
}
return (int)json_decode($process->getOutput())->bytes;
/** @var array{bytes: int} */
$output = json_decode($process->getOutput(), true);
return $output['bytes'];
}
/**