Merge "Add 3D filetype for STL files"
[lhc/web/wiklou.git] / includes / jobqueue / jobs / ThumbnailRenderJob.php
index 0abc0e3..cf3155d 100644 (file)
@@ -77,7 +77,7 @@ class ThumbnailRenderJob extends Job {
                }
        }
 
-       protected function hitThumbUrl( $file, $transformParams, &$thumbUrl ) {
+       protected function hitThumbUrl( LocalFile $file, $transformParams, &$thumbUrl ) {
                global $wgUploadThumbnailRenderHttpCustomHost, $wgUploadThumbnailRenderHttpCustomDomain;
 
                $thumbName = $file->thumbName( $transformParams );
@@ -96,7 +96,7 @@ class ThumbnailRenderJob extends Job {
                wfDebug( __METHOD__ . ": hitting url {$thumbUrl}\n" );
 
                $request = MWHttpRequest::factory( $thumbUrl,
-                       array( 'method' => 'HEAD', 'followRedirects' => true ),
+                       [ 'method' => 'HEAD', 'followRedirects' => true ],
                        __METHOD__
                );