aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filerepo/file/ArchivedFile.php
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2024-12-19 19:31:14 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2024-12-19 19:31:14 +0000
commit459f954c6089d671f4a50e059719c609ee62c60e (patch)
tree3ca338fcf273cf47ed41249824f3a520f95d550d /includes/filerepo/file/ArchivedFile.php
parentda34a76dc3ef2b44ebf62f7d1d5ed1f66a5431f9 (diff)
parent5d5a81a4b9bf3f3cb110d13abdd9cddfa9b2f462 (diff)
downloadmediawikicore-459f954c6089d671f4a50e059719c609ee62c60e.tar.gz
mediawikicore-459f954c6089d671f4a50e059719c609ee62c60e.zip
Merge "Replace isset() with null checks"
Diffstat (limited to 'includes/filerepo/file/ArchivedFile.php')
-rw-r--r--includes/filerepo/file/ArchivedFile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/filerepo/file/ArchivedFile.php b/includes/filerepo/file/ArchivedFile.php
index 3efa0fa68fb9..9dd0fad0b9e4 100644
--- a/includes/filerepo/file/ArchivedFile.php
+++ b/includes/filerepo/file/ArchivedFile.php
@@ -642,7 +642,7 @@ class ArchivedFile {
* @return int|false
*/
public function pageCount() {
- if ( !isset( $this->pageCount ) ) {
+ if ( $this->pageCount === null ) {
// @FIXME: callers expect File objects
// @phan-suppress-next-line PhanTypeMismatchArgument
if ( $this->getHandler() && $this->handler->isMultiPage( $this ) ) {