"PhanCommentParamWithoutRealParam",
// approximate error count: 2
"PhanCompatibleNegativeStringOffset",
- // approximate error count: 1
- "PhanEmptyFQSENInCallable",
- // approximate error count: 1
- "PhanInvalidCommentForDeclarationType",
- // approximate error count: 6
- "PhanNonClassMethodCall",
// approximate error count: 21
"PhanParamReqAfterOpt",
- // approximate error count: 27
+ // approximate error count: 26
"PhanParamSignatureMismatch",
// approximate error count: 4
"PhanParamSignatureMismatchInternal",
- // approximate error count: 1
- "PhanParamSignatureRealMismatchTooFewParameters",
- // approximate error count: 1
- "PhanParamSuspiciousOrder",
// approximate error count: 127
"PhanParamTooMany",
// approximate error count: 2
- "PhanParamTooManyCallable",
- // approximate error count: 1
- "PhanParamTooManyInternal",
- // approximate error count: 2
"PhanPluginDuplicateExpressionBinaryOp",
// approximate error count: 2
"PhanTraitParentReference",
- // approximate error count: 27
+ // approximate error count: 26
"PhanTypeArraySuspicious",
// approximate error count: 33
"PhanTypeArraySuspiciousNullable",
"PhanTypeInvalidRightOperandOfIntegerOp",
// approximate error count: 152
"PhanTypeMismatchArgument",
- // approximate error count: 28
+ // approximate error count: 27
"PhanTypeMismatchArgumentInternal",
// approximate error count: 1
"PhanTypeMismatchBitwiseBinaryOperands",
"PhanTypeMismatchDimFetch",
// approximate error count: 10
"PhanTypeMismatchForeach",
- // approximate error count: 77
+ // approximate error count: 78
"PhanTypeMismatchProperty",
// approximate error count: 85
"PhanTypeMismatchReturn",
"PhanUndeclaredVariableAssignOp",
// approximate error count: 55
"PhanUndeclaredVariableDim",
- // approximate error count: 4
+ // approximate error count: 3
"PhanUnextractableAnnotationElementName",
// approximate error count: 4
"PhanUnextractableAnnotationSuffix",
"jakub-onderka/php-console-highlighter": "0.3.2",
"jakub-onderka/php-parallel-lint": "0.9.2",
"justinrainbow/json-schema": "~5.2",
- "mediawiki/mediawiki-codesniffer": "24.0.0",
+ "mediawiki/mediawiki-codesniffer": "25.0.0",
"monolog/monolog": "~1.22.1",
"nikic/php-parser": "3.1.5",
"seld/jsonlint": "1.7.1",
// Allow unicode if a single high-bit character appears
$r0 = sprintf( '\x%02x', $ord0 );
$allowUnicode = true;
+ // @phan-suppress-next-line PhanParamSuspiciousOrder false positive
} elseif ( strpos( '-\\[]^', $d0 ) !== false ) {
$r0 = '\\' . $d0;
} else {
protected $undo = 0, $undoafter = 0, $cur = 0;
- /** @param RevisionRecord|null */
+ /** @var RevisionRecord|null */
protected $curRev = null;
public function getName() {
/** isVisible inherited */
/**
+ * Checks if this file exists in its parent repo, as referenced by its
+ * virtual URL.
+ *
* @return bool
*/
function isMissing() {
if ( $this->missing === null ) {
- list( $fileExists ) = $this->repo->fileExists( $this->getVirtualUrl() );
+ $fileExists = $this->repo->fileExists( $this->getVirtualUrl() );
$this->missing = !$fileExists;
}
[ 'class' => 'mw-htmlform-submit-buttons' ], "\n$buttons" ) . "\n";
}
+ /**
+ * @inheritDoc
+ * @return OOUI\PanelLayout
+ */
protected function wrapFieldSetSection( $legend, $section, $attributes, $isRoot ) {
// to get a user visible effect, wrap the fieldset into a framed panel layout
$layout = new OOUI\PanelLayout( [
/** @var array */
public static $sourceRegistrations = [];
- /** @var string */
+ /** @var ImportSource */
private $mSource;
/** @var string */
if ( $eocdrPos !== false ) {
$this->logger->info( __METHOD__ . ": ZIP signature present in $file\n" );
// Check if it really is a ZIP file, make sure the EOCDR is at the end (T40432)
+ // FIXME: unpack()'s third argument was added in PHP 7.1
+ // @phan-suppress-next-line PhanParamTooManyInternal
$commentLength = unpack( "n", $tail, $eocdrPos + 20 )[0];
if ( $eocdrPos + 22 + $commentLength !== strlen( $tail ) ) {
$this->logger->info( __METHOD__ . ": ZIP EOCDR not at end. Not a ZIP file." );
* Additional parsing options
*/
private $parserOptions = [
- 'processing_instruction_handler' => '',
+ 'processing_instruction_handler' => null,
'external_dtd_handler' => '',
'dtd_handler' => '',
'require_safe_dtd' => true
list( $phpCallback ) = $callback;
$this->clearFlag( self::DBO_TRX ); // make each query its own transaction
try {
+ // @phan-suppress-next-line PhanParamTooManyCallable
call_user_func( $phpCallback, $trigger, $this );
} catch ( Exception $ex ) {
call_user_func( $this->errorLogger, $ex );
*
* @see ILoadBalancer::getConnection() for parameter information
*
- * @param int $db Server index or DB_MASTER/DB_REPLICA
+ * @param int $i Server index or DB_MASTER/DB_REPLICA
* @param array|string|bool $groups Query group(s), or false for the generic reader
* @param string|bool $domain Domain ID, or false for the current domain
* @param int $flags Bitfield of CONN_* class constants (e.g. CONN_TRX_AUTOCOMMIT)
* @return MaintainableDBConnRef
*/
- public function getMaintenanceConnectionRef( $db, $groups = [], $domain = false, $flags = 0 );
+ public function getMaintenanceConnectionRef( $i, $groups = [], $domain = false, $flags = 0 );
/**
* Open a connection to the server given by the specified index
$filterDefinition = $this->transformFilterDefinition( $filterDefinition );
}
+ // @phan-suppress-next-line PhanNonClassMethodCall
$this->registerFilterGroup( new $className( $groupDefinition ) );
}
}
* the HTMLForm
* @param WebRequest|null $request Optionally try and get data from a request too
* @return array [ User|string|null, Block::TYPE_ constant|null ]
+ * @phan-return array{0:User|string|null,1:int|null}
*/
public static function getTargetAndType( $par, WebRequest $request = null ) {
$i = 0;
$this->reader = $reader;
$this->writer = $writer;
$this->generator = $generator;
- $this->output = function () {
+ $this->output = function ( $text ) {
}; // nop
}
public $mVariantFallbacks;
public $mVariantNames;
public $mTablesLoaded = false;
+
+ /**
+ * @var ReplacementArray[]
+ * @phan-var array<string,ReplacementArray>
+ */
public $mTables;
+
// 'bidirectional' 'unidirectional' 'disable' for each variant
public $mManualLevel;
class PPFuzzUser extends User {
public $ppfz_test, $mDataLoaded;
- function load() {
+ function load( $flags = null ) {
if ( $this->mDataLoaded ) {
return;
}