Upgrade to newer phan

Bug: T216923
Change-Id: I4b1363d58bb1e1ed4393bfe917f524091495057b
This commit is contained in:
Kunal Mehta 2019-03-17 16:32:13 -07:00
parent 0a104ab99d
commit 0f74b73974
5 changed files with 6 additions and 7 deletions

1
.gitignore vendored
View file

@ -22,4 +22,3 @@ project.index
## Sublime ## Sublime
sublime-* sublime-*
sftp-config.json sftp-config.json
tests/phan/issues

3
.phan/config.php Normal file
View file

@ -0,0 +1,3 @@
<?php
return require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';

View file

@ -4,7 +4,7 @@
"mediawiki/mediawiki-codesniffer": "24.0.0", "mediawiki/mediawiki-codesniffer": "24.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2", "jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/minus-x": "0.3.1", "mediawiki/minus-x": "0.3.1",
"mediawiki/mediawiki-phan-config": "0.3.0" "mediawiki/mediawiki-phan-config": "0.5.0"
}, },
"scripts": { "scripts": {
"fix": [ "fix": [

View file

@ -281,9 +281,9 @@ class SpecialInterwiki extends SpecialPage {
} }
if ( $do === 'add' ) { if ( $do === 'add' ) {
$dbw->insert( 'interwiki', $rows, __METHOD__, 'IGNORE' ); $dbw->insert( 'interwiki', $rows, __METHOD__, [ 'IGNORE' ] );
} else { // $do === 'edit' } else { // $do === 'edit'
$dbw->update( 'interwiki', $rows, [ 'iw_prefix' => $prefix ], __METHOD__, 'IGNORE' ); $dbw->update( 'interwiki', $rows, [ 'iw_prefix' => $prefix ], __METHOD__, [ 'IGNORE' ] );
} }
// used here: interwiki_addfailed, interwiki_added, interwiki_edited // used here: interwiki_addfailed, interwiki_added, interwiki_edited

View file

@ -1,3 +0,0 @@
<?php
return require __DIR__ . '/../../vendor/mediawiki/mediawiki-phan-config/src/config.php';