dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deprecate setting Parser::mTitle to null
[lhc/web/wiklou.git]
/
includes
/
Title.php
diff --git
a/includes/Title.php
b/includes/Title.php
index
6c15a06
..
60adb57
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-1266,13
+1266,11
@@
class Title implements LinkTarget, IDBAccessObject {
/**
* Returns true if the title is inside one of the specified namespaces.
*
/**
* Returns true if the title is inside one of the specified namespaces.
*
- * @param int|int[]
$namespaces,...
The namespaces to check for
+ * @param int|int[]
...$namespaces
The namespaces to check for
* @return bool
* @since 1.19
* @return bool
* @since 1.19
- * @suppress PhanCommentParamOnEmptyParamList Cannot make variadic due to HHVM bug, T191668#5263929
*/
*/
- public function inNamespaces( /* ... */ ) {
- $namespaces = func_get_args();
+ public function inNamespaces( ...$namespaces ) {
if ( count( $namespaces ) > 0 && is_array( $namespaces[0] ) ) {
$namespaces = $namespaces[0];
}
if ( count( $namespaces ) > 0 && is_array( $namespaces[0] ) ) {
$namespaces = $namespaces[0];
}