Page MenuHomePhabricator

UploadWizard phan is failing due to a core change
Closed, ResolvedPublic

Description

A patch without changes is failing phan, see https://gerrit.wikimedia.org/r/c/mediawiki/extensions/UploadWizard/+/704610.

23:38:08 includes/specials/SpecialUploadWizard.php:296 PhanTypeMismatchArgumentNullable Argument 1 ($block) is $user->getBlock() of type ?\MediaWiki\Block\AbstractBlock|?\MediaWiki\Block\Block but \UserBlockedError::__construct() takes \MediaWiki\Block\Block defined at ../../includes/exception/UserBlockedError.php:40 (expected type to be non-nullable)

See related T286461: CI tests for ContentTranslation fails due to a core change.