Skip to content

Commit

Permalink
Revert some return types for symfony/flex compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Feb 22, 2022
1 parent 225b4d7 commit e52071a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Composer/Util/RemoteFilesystem.php
Expand Up @@ -106,7 +106,7 @@ public function __construct(IOInterface $io, Config $config, array $options = ar
*
* @return bool true
*/
public function copy(string $originUrl, string $fileUrl, string $fileName, bool $progress = true, array $options = array()): bool
public function copy(string $originUrl, string $fileUrl, string $fileName, bool $progress = true, array $options = array())
{
return $this->get($originUrl, $fileUrl, $options, $fileName, $progress);
}
Expand All @@ -131,7 +131,7 @@ public function getContents(string $originUrl, string $fileUrl, bool $progress =
*
* @return mixed[] Options
*/
public function getOptions(): array
public function getOptions()
{
return $this->options;
}
Expand All @@ -142,7 +142,7 @@ public function getOptions(): array
* @param mixed[] $options
* @return void
*/
public function setOptions(array $options): void
public function setOptions(array $options)
{
$this->options = array_replace_recursive($this->options, $options);
}
Expand All @@ -152,7 +152,7 @@ public function setOptions(array $options): void
*
* @return bool
*/
public function isTlsDisabled(): bool
public function isTlsDisabled()
{
return $this->disableTls === true;
}
Expand All @@ -162,7 +162,7 @@ public function isTlsDisabled(): bool
*
* @return string[]
*/
public function getLastHeaders(): array
public function getLastHeaders()
{
return $this->lastHeaders;
}
Expand All @@ -171,7 +171,7 @@ public function getLastHeaders(): array
* @param string[] $headers array of returned headers like from getLastHeaders()
* @return int|null
*/
public static function findStatusCode(array $headers): ?int
public static function findStatusCode(array $headers)
{
$value = null;
foreach ($headers as $header) {
Expand All @@ -189,7 +189,7 @@ public static function findStatusCode(array $headers): ?int
* @param string[] $headers array of returned headers like from getLastHeaders()
* @return string|null
*/
public function findStatusMessage(array $headers): ?string
public function findStatusMessage(array $headers)
{
$value = null;
foreach ($headers as $header) {
Expand Down Expand Up @@ -554,7 +554,7 @@ protected function getRemoteContents(string $originUrl, string $fileUrl, $contex
*
* @throws TransportException
*/
protected function callbackGet(int $notificationCode, int $severity, ?string $message, int $messageCode, int $bytesTransferred, int $bytesMax): void
protected function callbackGet(int $notificationCode, int $severity, ?string $message, int $messageCode, int $bytesTransferred, int $bytesMax)
{
switch ($notificationCode) {
case STREAM_NOTIFY_FAILURE:
Expand Down Expand Up @@ -592,7 +592,7 @@ protected function callbackGet(int $notificationCode, int $severity, ?string $me
*
* @return void
*/
protected function promptAuthAndRetry($httpStatus, ?string $reason = null, array $headers = array()): void
protected function promptAuthAndRetry($httpStatus, ?string $reason = null, array $headers = array())
{
$result = $this->authHelper->promptAuthIfNeeded($this->fileUrl, $this->originUrl, $httpStatus, $reason, $headers);

Expand All @@ -610,7 +610,7 @@ protected function promptAuthAndRetry($httpStatus, ?string $reason = null, array
*
* @return mixed[]
*/
protected function getOptionsForUrl(string $originUrl, array $additionalOptions): array
protected function getOptionsForUrl(string $originUrl, array $additionalOptions)
{
$tlsOptions = array();
$headers = array();
Expand Down

0 comments on commit e52071a

Please sign in to comment.