@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | /** |
| 247 | 247 | * Returns true if the specified message is present as a warning or error |
| 248 | 248 | * |
| 249 | - * @param string|MessageSpecifier $message Message key or object to search for |
|
| 249 | + * @param string $message Message key or object to search for |
|
| 250 | 250 | * |
| 251 | 251 | * @return bool |
| 252 | 252 | */ |
@@ -274,8 +274,8 @@ discard block |
||
| 274 | 274 | * Note, due to the lack of tools for comparing IStatusMessage objects, this |
| 275 | 275 | * function will not work when using such an object as the search parameter. |
| 276 | 276 | * |
| 277 | - * @param MessageSpecifier|string $source Message key or object to search for |
|
| 278 | - * @param MessageSpecifier|string $dest Replacement message key or object |
|
| 277 | + * @param string $source Message key or object to search for |
|
| 278 | + * @param string $dest Replacement message key or object |
|
| 279 | 279 | * @return bool Return true if the replacement was done, false otherwise. |
| 280 | 280 | */ |
| 281 | 281 | public function replaceMessage( $source, $dest ) { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * 1 => object(Status) # The Status with warning messages, only |
| 114 | 114 | * ] |
| 115 | 115 | * |
| 116 | - * @return Status[] |
|
| 116 | + * @return StatusValue[] |
|
| 117 | 117 | */ |
| 118 | 118 | public function splitByErrorType() { |
| 119 | 119 | list( $errorsOnlyStatus, $warningsOnlyStatus ) = parent::splitByErrorType(); |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | * |
| 226 | 226 | * If both parameters are missing, and there is only one error, no bullet will be added. |
| 227 | 227 | * |
| 228 | - * @param string|string[]|bool $shortContext A message name or an array of message names. |
|
| 228 | + * @param string $shortContext A message name or an array of message names. |
|
| 229 | 229 | * @param string|string[]|bool $longContext A message name or an array of message names. |
| 230 | 230 | * @param string|Language $lang Language to use for processing messages |
| 231 | 231 | * @return Message |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | * @param string|bool $shortContext A short enclosing context message name, to |
| 310 | 310 | * be used when there is a single error |
| 311 | 311 | * @param string|bool $longContext A long enclosing context message name, for a list |
| 312 | - * @param string|Language|null $lang Language to use for processing messages |
|
| 312 | + * @param Language $lang Language to use for processing messages |
|
| 313 | 313 | * @return string |
| 314 | 314 | */ |
| 315 | 315 | public function getHTML( $shortContext = false, $longContext = false, $lang = null ) { |