From: Daimona Eaytoy Date: Wed, 11 Sep 2019 09:07:30 +0000 (+0200) Subject: Declare dynamic properties X-Git-Tag: 1.34.0-rc.0~229^2 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=9699158f742ce3c927c661bdd12d6a73b7a0235d;p=lhc%2Fweb%2Fwiklou.git Declare dynamic properties This is for all classes with 2 or more undeclared properties. Change-Id: I1d80deb31f331bcc277b33f9e9f74857ba825637 --- diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 8b5d9956ab..a1be271848 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -58,6 +58,18 @@ class ProtectionForm { /** @var array Map of action to the expiry time of the existing protection */ protected $mExistingExpiry = []; + /** @var Article */ + protected $mArticle; + + /** @var Title */ + protected $mTitle; + + /** @var bool */ + protected $disabled; + + /** @var array */ + protected $disabledAttrib; + /** @var IContextSource */ private $mContext; @@ -78,7 +90,7 @@ class ProtectionForm { if ( wfReadOnly() ) { $this->mPermErrors[] = [ 'readonlytext', wfReadOnlyReason() ]; } - $this->disabled = $this->mPermErrors != []; + $this->disabled = $this->mPermErrors !== []; $this->disabledAttrib = $this->disabled ? [ 'disabled' => 'disabled' ] : []; diff --git a/includes/export/DumpMultiWriter.php b/includes/export/DumpMultiWriter.php index 92118fe41d..2f5b3dc6df 100644 --- a/includes/export/DumpMultiWriter.php +++ b/includes/export/DumpMultiWriter.php @@ -27,6 +27,10 @@ * @ingroup Dump */ class DumpMultiWriter { + /** @var array */ + private $sinks; + /** @var int */ + private $count; /** * @param array $sinks diff --git a/includes/filerepo/file/LocalFileMoveBatch.php b/includes/filerepo/file/LocalFileMoveBatch.php index 21980b90eb..0cdc2d5de1 100644 --- a/includes/filerepo/file/LocalFileMoveBatch.php +++ b/includes/filerepo/file/LocalFileMoveBatch.php @@ -46,6 +46,24 @@ class LocalFileMoveBatch { /** @var IDatabase */ protected $db; + /** @var string */ + protected $oldHash; + + /** @var string */ + protected $newHash; + + /** @var string */ + protected $oldName; + + /** @var string */ + protected $newName; + + /** @var string */ + protected $oldRel; + + /** @var string */ + protected $newRel; + /** * @param File $file * @param Title $target diff --git a/includes/gallery/ImageGalleryBase.php b/includes/gallery/ImageGalleryBase.php index c6d8ddf3db..4781a489f5 100644 --- a/includes/gallery/ImageGalleryBase.php +++ b/includes/gallery/ImageGalleryBase.php @@ -88,6 +88,15 @@ abstract class ImageGalleryBase extends ContextSource { /** @var array */ protected $mAttribs = []; + /** @var int */ + protected $mPerRow; + + /** @var int */ + protected $mWidths; + + /** @var int */ + protected $mHeights; + /** @var array */ private static $modeMapping; diff --git a/includes/import/ImportStringSource.php b/includes/import/ImportStringSource.php index fdd1f77774..b75ea1a192 100644 --- a/includes/import/ImportStringSource.php +++ b/includes/import/ImportStringSource.php @@ -32,6 +32,12 @@ * @ingroup SpecialPage */ class ImportStringSource implements ImportSource { + /** @var string */ + private $mString; + + /** @var bool */ + private $mRead; + /** * @param string $string */ diff --git a/includes/logging/LogPager.php b/includes/logging/LogPager.php index 38710477cb..1e586378d2 100644 --- a/includes/logging/LogPager.php +++ b/includes/logging/LogPager.php @@ -53,6 +53,12 @@ class LogPager extends ReverseChronologicalPager { /** @var bool */ private $actionRestrictionsEnforced = false; + /** @var array */ + private $mConds; + + /** @var string */ + private $mTagFilter; + /** @var LogEventsList */ public $mLogEventsList;