X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Futils%2FMWFileProps.php;h=19a3ce5bedee960ee274676affcffa6f5b66780e;hb=1dfcb874410bf4166874d1c8d469e120cf9879ef;hp=9d05c6ab17bbf4d6f491b3164ccebf6b151851b3;hpb=967a96e7fa5910f8fc451590decb381dbfb481ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/MWFileProps.php b/includes/utils/MWFileProps.php index 9d05c6ab17..19a3ce5bed 100644 --- a/includes/utils/MWFileProps.php +++ b/includes/utils/MWFileProps.php @@ -26,7 +26,7 @@ * @since 1.28 */ class MWFileProps { - /** @var MimeMagic */ + /** @var MimeAnalyzer */ private $magic; /** @@ -104,11 +104,7 @@ class MWFileProps { # NOTE: $gis[2] contains a code for the image type. This is no longer used. $info['width'] = $gis[0]; $info['height'] = $gis[1]; - if ( isset( $gis['bits'] ) ) { - $info['bits'] = $gis['bits']; - } else { - $info['bits'] = 0; - } + $info['bits'] = $gis['bits'] ?? 0; return $info; }