/** @var Title */
protected $title; # image title
+ /** @var bool */
+ private $exists;
+
/**
* @throws MWException
* @param Title $title
function pageCount() {
if ( !isset( $this->pageCount ) ) {
// @FIXME: callers expect File objects
+ // @phan-suppress-next-line PhanTypeMismatchArgument
if ( $this->getHandler() && $this->handler->isMultiPage( $this ) ) {
+ // @phan-suppress-next-line PhanTypeMismatchArgument
$this->pageCount = $this->handler->pageCount( $this );
} else {
$this->pageCount = false;