X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiImageRotate.php;h=8a0e8c974d66fc319331d03fb4cda9dfb333c97a;hp=668bd0e4272e807df7e5b191cc922b1a13fbbefe;hb=fa0f6f34972c0e0f4aac24a03b3efdfc45f256f6;hpb=67d01c452da591faced0a4be7940acf4f3292928 diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php index 668bd0e427..8a0e8c974d 100644 --- a/includes/api/ApiImageRotate.php +++ b/includes/api/ApiImageRotate.php @@ -1,7 +1,4 @@ getTempFSFileFactory() + ->newTempFSFile( 'rotate_', $ext ); $dstPath = $tmpFile->getPath(); + // @phan-suppress-next-line PhanUndeclaredMethod $err = $handler->rotate( $file, [ 'srcPath' => $srcPath, 'dstPath' => $dstPath, @@ -112,6 +116,7 @@ class ApiImageRotate extends ApiBase { $comment = wfMessage( 'rotate-comment' )->numParams( $rotation )->inContentLanguage()->text(); + // @phan-suppress-next-line PhanUndeclaredMethod $status = $file->upload( $dstPath, $comment,