Changes:
- uses int instead of number as param and return value type,
- uses stdClass instead of stdObject
- fixes ResourceLoaderClientHtml constructor's $target param type:
it is string|null, not an array (previously misspelled as "aray")
- changes the type of references to XML parser in XMP lib to resource
instead of not existing XMLParser
Change-Id: I98c363ebc6658d1f4dcabad97a9a92f3fcd7ea8c
- * @param number $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 ];
*/
public static function timeperiodParam( $period ) {
return [ 'period' => $period ];
- * @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.
*
* (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.
*
- * @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
* (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
*
*
* @return Content|bool|null
*
- * @param string|number|null|bool $sectionId
+ * @param string|int|null|bool $sectionId
* @param Content $with
* @param string $sectionTitle
*
* @param Content $with
* @param string $sectionTitle
*
* <exif:DigitalZoomRatio>0/10</exif:DigitalZoomRatio>
* and are processing the 0/10 bit.
*
* <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
*/
* @param string $data Character data
* @throws RuntimeException On invalid data
*/
* Ignores the outer wrapping elements that are optional in
* xmp and have no meaning.
*
* 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
*/
* @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
*
* 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 $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.
* (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.
* (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
* 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
* "<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
* 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
*
* (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
* 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
*
* (e.g. 0, 1 or 'T-1').
* @param string $newText Replacing text
*
/**
* @param ResourceLoaderContext $context
/**
* @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;
*/
public function __construct( ResourceLoaderContext $context, $target = null ) {
$this->context = $context;
/**
* @ingroup SpecialPage
*/
/**
* @ingroup SpecialPage
*/
* we need to implement since abstract in parent class.
*
* @param Skin $skin
* 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
*/
* @return bool|string|void
* @throws MWException
*/
"PhanUndeclaredProperty",
// approximate error count: 9
"PhanUndeclaredStaticMethod",
"PhanUndeclaredProperty",
// approximate error count: 9
"PhanUndeclaredStaticMethod",
- // approximate error count: 15
- "PhanUndeclaredTypeParameter",
// approximate error count: 79
"PhanUndeclaredVariable",
],
// approximate error count: 79
"PhanUndeclaredVariable",
],