X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=blobdiff_plain;f=includes%2FTitle.php;h=60adb570fe15cdf2397115c05e622d5703e4a619;hb=248b7e2e31a4c8c4034c885d7ea5d07fe9f7d111;hp=6c15a062b095dd91f785803bbfc470ae8a5e3bf8;hpb=81aa6d7a758a000dcd110a2d4d21e50aca6d3444;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Title.php b/includes/Title.php index 6c15a062b0..60adb570fe 100644 --- 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. * - * @param int|int[] $namespaces,... The namespaces to check for + * @param int|int[] ...$namespaces The namespaces to check for * @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]; }