diff --git a/src/ParallelDownloader.php b/src/ParallelDownloader.php index 3acbc3b9b..070124431 100644 --- a/src/ParallelDownloader.php +++ b/src/ParallelDownloader.php @@ -103,7 +103,7 @@ public function download(array &$nextArgs, callable $nextCallback, bool $quiet = } } - public function getOptions() + public function getOptions(): array { $options = array_replace_recursive(parent::getOptions(), $this->nextOptions); $this->nextOptions = []; @@ -121,7 +121,7 @@ public function setNextOptions(array $options) /** * {@inheritdoc} */ - public function getLastHeaders() + public function getLastHeaders(): array { return $this->lastHeaders ?? parent::getLastHeaders(); } @@ -129,7 +129,7 @@ public function getLastHeaders() /** * {@inheritdoc} */ - public function copy($originUrl, $fileUrl, $fileName, $progress = true, $options = []) + public function copy($originUrl, $fileUrl, $fileName, $progress = true, $options = []): bool { $options = array_replace_recursive($this->nextOptions, $options); $this->nextOptions = []; @@ -156,7 +156,7 @@ public function getContents($originUrl, $fileUrl, $progress = true, $options = [ /** * @internal */ - public function callbackGet($notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax, $nativeDownload = true) + public function callbackGet($notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax, $nativeDownload = true): void { if (!$nativeDownload && \STREAM_NOTIFY_SEVERITY_ERR === $severity) { throw new TransportException($message, $messageCode);