Skip to content

Commit c3d8f5d

Browse files
PhilETaylornicolas-grekas
authored andcommitted
Add some native return types
1 parent e2faf2b commit c3d8f5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ParallelDownloader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function download(array &$nextArgs, callable $nextCallback, bool $quiet =
103103
}
104104
}
105105

106-
public function getOptions()
106+
public function getOptions(): array
107107
{
108108
$options = array_replace_recursive(parent::getOptions(), $this->nextOptions);
109109
$this->nextOptions = [];
@@ -121,7 +121,7 @@ public function setNextOptions(array $options)
121121
/**
122122
* {@inheritdoc}
123123
*/
124-
public function getLastHeaders()
124+
public function getLastHeaders(): array
125125
{
126126
return $this->lastHeaders ?? parent::getLastHeaders();
127127
}
@@ -156,7 +156,7 @@ public function getContents($originUrl, $fileUrl, $progress = true, $options = [
156156
/**
157157
* @internal
158158
*/
159-
public function callbackGet($notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax, $nativeDownload = true)
159+
public function callbackGet($notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax, $nativeDownload = true): void
160160
{
161161
if (!$nativeDownload && \STREAM_NOTIFY_SEVERITY_ERR === $severity) {
162162
throw new TransportException($message, $messageCode);

0 commit comments

Comments
 (0)