diff --git a/MultimediaViewerHooks.php b/MultimediaViewerHooks.php
index 66fb7c131..0f6fe6cff 100644
--- a/MultimediaViewerHooks.php
+++ b/MultimediaViewerHooks.php
@@ -228,9 +228,9 @@ class MultimediaViewerHooks {
* Modify thumbnail DOM
* @param ThumbnailImage $thumbnail
* @param array $attribs Attributes of the element
- * @param array $linkAttribs Attributes of the wrapping element
+ * @param array|boolean $linkAttribs Attributes of the wrapping element
*/
- public static function thumbnailBeforeProduceHTML( ThumbnailImage $thumbnail, array &$attribs, array &$linkAttribs ) {
+ public static function thumbnailBeforeProduceHTML( ThumbnailImage $thumbnail, array &$attribs, &$linkAttribs ) {
$file = $thumbnail->getFile();
if ( $file ) {