/**
* @since 1.22
*
- * @param number $period
+ * @param int $period
*
- * @return number[] Array with a single "period" key.
+ * @return int[] Array with a single "period" key.
*/
public static function timeperiodParam( $period ) {
return [ 'period' => $period ];
*
* @since 1.21
*
- * @param string|number $sectionId Section identifier as a number or string
+ * @param string|int $sectionId Section identifier as a number or string
* (e.g. 0, 1 or 'T-1'). The ID "0" retrieves the section before the first heading, "1" the
* text between the first heading (included) and the second heading (excluded), etc.
*
*
* @since 1.21
*
- * @param string|number|null|bool $sectionId Section identifier as a number or string
+ * @param string|int|null|bool $sectionId Section identifier as a number or string
* (e.g. 0, 1 or 'T-1'), null/false or an empty string for the whole page
* or 'new' for a new section.
* @param Content $with New content of the section
}
/**
- * @param string|number $sectionId
+ * @param string|int $sectionId
*
* @return Content|bool|null
*
}
/**
- * @param string|number|null|bool $sectionId
+ * @param string|int|null|bool $sectionId
* @param Content $with
* @param string $sectionTitle
*
* <exif:DigitalZoomRatio>0/10</exif:DigitalZoomRatio>
* and are processing the 0/10 bit.
*
- * @param XMLParser $parser XMLParser reference to the xml parser
+ * @param resource $parser XMLParser reference to the xml parser
* @param string $data Character data
* @throws RuntimeException On invalid data
*/
* Ignores the outer wrapping elements that are optional in
* xmp and have no meaning.
*
- * @param XMLParser $parser
+ * @param resource $parser
* @param string $elm Namespace . ' ' . element name
* @throws RuntimeException
*/
* Generally just calls a helper based on what MODE we're in.
* Also does some initial set up for the wrapper element
*
- * @param XMLParser $parser
+ * @param resource $parser
* @param string $elm Namespace "<space>" element
* @param array $attribs Attribute name => value
* @throws RuntimeException
}
/**
- * @param string|number|null|bool $sectionId Section identifier as a number or string
+ * @param string|int|null|bool $sectionId Section identifier as a number or string
* (e.g. 0, 1 or 'T-1'), null/false or an empty string for the whole page
* or 'new' for a new section.
* @param Content $sectionContent New content of the section.
}
/**
- * @param string|number|null|bool $sectionId Section identifier as a number or string
+ * @param string|int|null|bool $sectionId Section identifier as a number or string
* (e.g. 0, 1 or 'T-1'), null/false or an empty string for the whole page
* or 'new' for a new section.
* @param Content $sectionContent New content of the section.
* External callers should use the getSection and replaceSection methods.
*
* @param string $text Page wikitext
- * @param string|number $sectionId A section identifier string of the form:
+ * @param string|int $sectionId A section identifier string of the form:
* "<flag1> - <flag2> - ... - <section number>"
*
* Currently the only recognised flag is "T", which means the target section number
* If a section contains subsections, these are also returned.
*
* @param string $text Text to look in
- * @param string|number $sectionId Section identifier as a number or string
+ * @param string|int $sectionId Section identifier as a number or string
* (e.g. 0, 1 or 'T-1').
* @param string $defaultText Default to return if section is not found
*
* section does not exist, $oldtext is returned unchanged.
*
* @param string $oldText Former text of the article
- * @param string|number $sectionId Section identifier as a number or string
+ * @param string|int $sectionId Section identifier as a number or string
* (e.g. 0, 1 or 'T-1').
* @param string $newText Replacing text
*
/**
* @param ResourceLoaderContext $context
- * @param aray $target [optional] Custom 'target' parameter for the startup module
+ * @param string|null $target [optional] Custom 'target' parameter for the startup module
*/
public function __construct( ResourceLoaderContext $context, $target = null ) {
$this->context = $context;
* @author Brian Wolff
*/
+use stdClass;
+
/**
* @ingroup SpecialPage
*/
* we need to implement since abstract in parent class.
*
* @param Skin $skin
- * @param stdObject $result Result row
+ * @param stdClass $result Result row
* @return bool|string|void
* @throws MWException
*/
"PhanUndeclaredProperty",
// approximate error count: 9
"PhanUndeclaredStaticMethod",
- // approximate error count: 15
- "PhanUndeclaredTypeParameter",
// approximate error count: 79
"PhanUndeclaredVariable",
],