Skip to content

Commit

Permalink
Bump mediawiki/mediawiki-codesniffer from 35.0.0 to 36.0.0 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored May 10, 2021
1 parent de0384d commit 1cf548c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "femiwiki/unified-extension-for-femiwiki",
"description": "an extension for femiwiki.",
"require-dev": {
"mediawiki/mediawiki-codesniffer": "35.0.0",
"mediawiki/mediawiki-codesniffer": "36.0.0",
"mediawiki/mediawiki-phan-config": "0.10.6",
"mediawiki/minus-x": "1.1.1",
"php-parallel-lint/php-console-highlighter": "0.5.0",
Expand Down
29 changes: 15 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions specials/SpecialOrderedWhatlinkshere.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private function showIndirectLinks( $level, $target, $limit, $from = 0, $back =
$conds['pagelinks']['rd_from'] = null;
}

$queryFunc = function ( IDatabase $dbr, $table, $fromCol ) use (
$queryFunc = static function ( IDatabase $dbr, $table, $fromCol ) use (
$conds, $target, $limit
) {
// Read an extra row as an at-end check
Expand Down Expand Up @@ -258,7 +258,7 @@ private function showIndirectLinks( $level, $target, $limit, $from = 0, $back =
/* ***Replaced***
ksort( $rows );
*/
usort( $rows, function ( $a, $b ) {
usort( $rows, static function ( $a, $b ) {
if ( isset( $a->page_title ) && isset( $b->page_title ) ) {
return strcasecmp( $a->page_title, $b->page_title );
} else {
Expand Down

0 comments on commit 1cf548c

Please sign in to comment.