X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fpage%2FWikiPage.php;h=655fa2711f691f06a914f59050f68eaa2203f459;hp=32b35f7d02def819409e69b0c50f2db1c2e73f3a;hb=a38af7ba26579bb3004f673e44d39710887763aa;hpb=c8f36c3754b675f9a730d4c0f6a6f9013a2967d2 diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index 32b35f7d02..655fa2711f 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -50,13 +50,23 @@ class WikiPage implements Page, IDBAccessObject { */ public $mTitle = null; - /**@{{ + /** + * @var bool + * @protected + */ + public $mDataLoaded = false; + + /** + * @var bool * @protected */ - public $mDataLoaded = false; // !< Boolean - public $mIsRedirect = false; // !< Boolean - public $mLatest = false; // !< Integer (false means "not loaded") - /**@}}*/ + public $mIsRedirect = false; + + /** + * @var int|false False means "not loaded" + * @protected + */ + public $mLatest = false; /** @var PreparedEdit Map of cache fields (text, parser output, ect) for a proposed/new edit */ public $mPreparedEdit = false; @@ -2626,7 +2636,9 @@ class WikiPage implements Page, IDBAccessObject { // Avoid PHP 7.1 warning of passing $this by reference $wikiPage = $this; - $deleter = is_null( $deleter ) ? $wgUser : $deleter; + if ( !$deleter ) { + $deleter = $wgUser; + } if ( !Hooks::run( 'ArticleDelete', [ &$wikiPage, &$deleter, &$reason, &$error, &$status, $suppress ] ) ) { @@ -2985,7 +2997,7 @@ class WikiPage implements Page, IDBAccessObject { * @param Content|null $content Page content to be used when determining * the required updates. This may be needed because $this->getContent() * may already return null when the page proper was deleted. - * @param RevisionRecord|Revision|null $revision The current page revision at the time of + * @param Revision|null $revision The current page revision at the time of * deletion, used when determining the required updates. This may be needed because * $this->getRevision() may already return null when the page proper was deleted. * @param User|null $user The user that caused the deletion