100% analysis in 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:
@ -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'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user