X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FWikiPage.php;h=9c5c4e055e570de0694251b665f07d4f482e3765;hb=43cc14657dae8594eebbf2e7e33a5a3c50b2e9e4;hp=460753514c9637978e2e2cd595e47a740cc06e28;hpb=c1d51d0c703a61010eb8cc73207e8a074d8c8e2e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index 460753514c..9c5c4e055e 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -41,6 +41,8 @@ use Wikimedia\Rdbms\LoadBalancer; * * Some fields are public only for backwards-compatibility. Use accessors. * In the past, this class was part of Article.php and everything was public. + * + * @phan-file-suppress PhanAccessMethodInternal Due to the use of DerivedPageDataUpdater */ class WikiPage implements Page, IDBAccessObject { // Constants for $mDataLoadedFrom and related @@ -68,7 +70,9 @@ class WikiPage implements Page, IDBAccessObject { */ public $mLatest = false; - /** @var PreparedEdit Map of cache fields (text, parser output, ect) for a proposed/new edit */ + /** + * @var PreparedEdit|false Map of cache fields (text, parser output, ect) for a proposed/new edit + */ public $mPreparedEdit = false; /** @@ -2390,7 +2394,7 @@ class WikiPage implements Page, IDBAccessObject { if ( !is_null( $nullRevision ) ) { $logEntry->setAssociatedRevId( $nullRevision->getId() ); } - $logEntry->setTags( $tags ); + $logEntry->addTags( $tags ); if ( $logRelationsField !== null && count( $logRelationsValues ) ) { $logEntry->setRelations( [ $logRelationsField => $logRelationsValues ] ); } @@ -2791,7 +2795,7 @@ class WikiPage implements Page, IDBAccessObject { $logEntry->setPerformer( $deleter ); $logEntry->setTarget( $logTitle ); $logEntry->setComment( $reason ); - $logEntry->setTags( $tags ); + $logEntry->addTags( $tags ); $logid = $logEntry->insert(); $dbw->onTransactionPreCommitOrIdle(