dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Suppress PhanUndeclaredProperty for custom properties and phan bugs
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiComparePages.php
diff --git
a/includes/api/ApiComparePages.php
b/includes/api/ApiComparePages.php
index
c4a97de
..
6e788d5
100644
(file)
--- a/
includes/api/ApiComparePages.php
+++ b/
includes/api/ApiComparePages.php
@@
-252,6
+252,7
@@
class ApiComparePages extends ApiBase {
);
if ( $row ) {
$rev = $this->revisionStore->newRevisionFromArchiveRow( $row );
);
if ( $row ) {
$rev = $this->revisionStore->newRevisionFromArchiveRow( $row );
+ // @phan-suppress-next-line PhanUndeclaredProperty
$rev->isArchive = true;
}
}
$rev->isArchive = true;
}
}
@@
-620,6
+621,7
@@
class ApiComparePages extends ApiBase {
}
}
}
}
+ // @phan-suppress-next-line PhanUndeclaredProperty
if ( !empty( $rev->isArchive ) ) {
$this->getMain()->setCacheMode( 'private' );
$vals["{$prefix}archive"] = true;
if ( !empty( $rev->isArchive ) ) {
$this->getMain()->setCacheMode( 'private' );
$vals["{$prefix}archive"] = true;