mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Merge "build: Resolve MediaWikiNoEmptyIfDefined suppression"
This commit is contained in:
commit
90dc52620c
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue