Merge "build: Resolve MediaWikiNoEmptyIfDefined suppression"

This commit is contained in:
jenkins-bot 2024-02-16 23:25:32 +00:00 committed by Gerrit Code Review
commit 90dc52620c
3 changed files with 3 additions and 4 deletions

View file

@ -5,9 +5,6 @@ $cfg = require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.
// Due to creation of Parser::$extCite property
$cfg['suppress_issue_types'][] = 'PhanUndeclaredProperty';
// To migrate later
$cfg['suppress_issue_types'][] = 'MediaWikiNoEmptyIfDefined';
/**
* Quick implementation of a recursive directory list.
* @param string $dir The directory to list

View file

@ -35,7 +35,7 @@ class Ref extends ExtensionTagHandler {
// function. However, we're overly permissive here since we can't
// distinguish when that's nested in another template.
// The php preprocessor did our expansion.
$allowNestedRef = !empty( $extApi->inTemplate() );
$allowNestedRef = $extApi->inTemplate();
return $extApi->extTagToDOM(
$extArgs,

View file

@ -1,6 +1,8 @@
<?php
declare( strict_types = 1 );
// phpcs:disable MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment
// @phan-file-suppress MediaWikiNoEmptyIfDefined Phan thinks the @property docs in the DataParsoid
// class are a guarantee, but they aren't
namespace Cite\Parsoid;