X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignAPIRepo.php;h=06b21a8fc62d65274c3dd35b2f71f99edc52f231;hp=1a86648889ec2eb2e6554cd483b5a20312cbff16;hb=645d96b0e1560e58285c88abfe8f8e726acb2e64;hpb=13033333fb223d16392aad0e64549226654d7359 diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index 1a86648889..06b21a8fc6 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -120,7 +120,7 @@ class ForeignAPIRepo extends FileRepo { } /** - * @param array $files + * @param string[] $files * @return array */ function fileExistsBatch( array $files ) { @@ -176,7 +176,7 @@ class ForeignAPIRepo extends FileRepo { /** * @param string $virtualUrl - * @return bool + * @return false */ function getFileProps( $virtualUrl ) { return false; @@ -231,7 +231,7 @@ class ForeignAPIRepo extends FileRepo { /** * @param string $hash - * @return array + * @return ForeignAPIFile[] */ function findBySha1( $hash ) { $results = $this->fetchImageQuery( [ @@ -257,10 +257,10 @@ class ForeignAPIRepo extends FileRepo { * @param string $name * @param int $width * @param int $height - * @param array &$result + * @param array|null &$result Output-only parameter, guaranteed to become an array * @param string $otherParams * - * @return bool + * @return string|false */ function getThumbUrl( $name, $width = -1, $height = -1, &$result = null, $otherParams = '' ) { $data = $this->fetchImageQuery( [ @@ -287,7 +287,7 @@ class ForeignAPIRepo extends FileRepo { * @param int $width * @param int $height * @param string $otherParams - * @param string $lang Language code for language of error + * @param string|null $lang Language code for language of error * @return bool|MediaTransformError * @since 1.22 */