X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=blobdiff_plain;f=includes%2Fapi%2FApiImageRotate.php;h=1f8b012ef2df710b292028c2103466787d8562e0;hb=c659bc63087b10d8765056500a8ed4bce6cfdbf4;hp=ccb26a83922f8b0130d64499b6105f6811bcbc18;hpb=ed398c0253e36f85d39452b00d3273867fe0b8ef;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php index ccb26a8392..1f8b012ef2 100644 --- a/includes/api/ApiImageRotate.php +++ b/includes/api/ApiImageRotate.php @@ -104,6 +104,7 @@ class ApiImageRotate extends ApiBase { $tmpFile = MediaWikiServices::getInstance()->getTempFSFileFactory() ->newTempFSFile( 'rotate_', $ext ); $dstPath = $tmpFile->getPath(); + // @phan-suppress-next-line PhanUndeclaredMethod $err = $handler->rotate( $file, [ 'srcPath' => $srcPath, 'dstPath' => $dstPath, @@ -113,6 +114,7 @@ class ApiImageRotate extends ApiBase { $comment = wfMessage( 'rotate-comment' )->numParams( $rotation )->inContentLanguage()->text(); + // @phan-suppress-next-line PhanUndeclaredMethod $status = $file->upload( $dstPath, $comment,