build: Updating mediawiki/mediawiki-phan-config to 0.9.0

Additional changes:
* Added .eslintcache to .gitignore.
* Fix wrong types

Change-Id: I833b061c62b82f3c88d968c70bae8317641aaa3d
This commit is contained in:
libraryupgrader 2019-12-21 02:46:59 +00:00 committed by Umherirrender
parent 08b8f864c0
commit d481d0c8db
5 changed files with 6 additions and 6 deletions

View file

@ -45,7 +45,7 @@ class MathCaptcha extends SimpleCaptcha {
$index = $this->storeCaptcha( [ 'answer' => $answer ] );
$form = '<table><tr><td>' . $this->fetchMath( $sum ) . '</td>';
$form .= '<td>' . Html::input( 'wpCaptchaWord', false, false, [
$form .= '<td>' . Html::input( 'wpCaptchaWord', '', '', [
'tabindex' => $tabIndex,
'autocomplete' => 'off',
'required'
@ -69,7 +69,7 @@ class MathCaptcha extends SimpleCaptcha {
/**
* Fetch the math
* @param int $sum
* @param string $sum
* @return string
*/
private function fetchMath( $sum ) {

View file

@ -1087,7 +1087,7 @@ class SimpleCaptcha {
* @private
*/
private function loadText( $title, $section, $flags = Revision::READ_LATEST ) {
$rev = Revision::newFromTitle( $title, false, $flags );
$rev = Revision::newFromTitle( $title, 0, $flags );
if ( is_null( $rev ) ) {
return "";
}

View file

@ -4,7 +4,7 @@
"mediawiki/mediawiki-codesniffer": "28.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/minus-x": "0.3.2",
"mediawiki/mediawiki-phan-config": "0.8.0"
"mediawiki/mediawiki-phan-config": "0.9.0"
},
"scripts": {
"test": [

View file

@ -29,7 +29,7 @@ abstract class CaptchaStore {
/**
* The singleton instance
* @var CaptchaStore
* @var CaptchaStore|null
*/
private static $instance;

View file

@ -100,7 +100,7 @@ class GenerateFancyCaptchas extends Maintenance {
wfEscapeShellArg( dirname( __DIR__ ) . '/' . $captchaScript ),
wfEscapeShellArg( $wgCaptchaSecret ),
wfEscapeShellArg( $tmpDir ),
wfEscapeShellArg( $countGen ),
wfEscapeShellArg( (string)$countGen ),
wfEscapeShellArg( $wgCaptchaDirectoryLevels )
);
foreach (