X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiComparePages.php;h=6e788d550dcdff93f2f492a5bbb38ce7849719e0;hp=05eb4382b33e06d83d5f05f48371756f3045c6fe;hb=a1ef77b2d80830fbcb617a83961d78cff9d6e384;hpb=41355718e137b2ed88160ad5ddb4db50336d54d9 diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index 05eb4382b3..6e788d550d 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -26,6 +26,9 @@ use MediaWiki\Revision\RevisionArchiveRecord; use MediaWiki\Revision\RevisionStore; use MediaWiki\Revision\SlotRecord; +/** + * @ingroup API + */ class ApiComparePages extends ApiBase { /** @var RevisionStore */ @@ -249,6 +252,7 @@ class ApiComparePages extends ApiBase { ); if ( $row ) { $rev = $this->revisionStore->newRevisionFromArchiveRow( $row ); + // @phan-suppress-next-line PhanUndeclaredProperty $rev->isArchive = true; } } @@ -617,6 +621,7 @@ class ApiComparePages extends ApiBase { } } + // @phan-suppress-next-line PhanUndeclaredProperty if ( !empty( $rev->isArchive ) ) { $this->getMain()->setCacheMode( 'private' ); $vals["{$prefix}archive"] = true;