Cache: Make APCUBagOStuff::set return a useful value
[lhc/web/wiklou.git] / includes / media / ThumbnailImage.php
index 0deb89f..36cf422 100644 (file)
@@ -112,7 +112,7 @@ class ThumbnailImage extends MediaTransformOutput {
        function toHtml( $options = [] ) {
                global $wgPriorityHints, $wgElementTiming;
 
-               if ( count( func_get_args() ) == 2 ) {
+               if ( func_num_args() == 2 ) {
                        throw new MWException( __METHOD__ . ' called in the old style' );
                }