X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2Ffile%2FFile.php;h=32f4504ba6a124f7abbd41edcc5a36104fa0fda8;hb=1649674e83817ab241bd0ac707b8114afc3087e3;hp=460fe51e3f877c5bc6b8af8ebc07ec1f797c9b54;hpb=c15f569fcec998b0a77a22a7970abfcb6a394d79;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/file/File.php b/includes/filerepo/file/File.php index 460fe51e3f..32f4504ba6 100644 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@ -1147,7 +1147,7 @@ abstract class File implements IDBAccessObject { if ( !$thumb ) { // bad params? $thumb = false; } elseif ( $thumb->isError() ) { // transform error - /** @var $thumb MediaTransformError */ + /** @var MediaTransformError $thumb */ $this->lastError = $thumb->toText(); // Ignore errors if requested if ( $wgIgnoreImageErrors && !( $flags & self::RENDER_NOW ) ) { @@ -1282,11 +1282,10 @@ abstract class File implements IDBAccessObject { // Thumbnailing a very large file could result in network saturation if // everyone does it at once. if ( $this->getSize() >= 1e7 ) { // 10MB - $that = $this; $work = new PoolCounterWorkViaCallback( 'GetLocalFileCopy', sha1( $this->getName() ), [ - 'doWork' => function () use ( $that ) { - return $that->getLocalRefPath(); + 'doWork' => function () { + return $this->getLocalRefPath(); } ] );