mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
build: Updating mediawiki/mediawiki-phan-config to 0.14.0
Change-Id: I3644fbc31d47b6b056122eb6f958de76e81e22ce
This commit is contained in:
parent
8d84937609
commit
ccaeae13c5
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\ConfirmEdit\FancyCaptcha;
|
||||
|
||||
use Exception;
|
||||
use FileBackend;
|
||||
use FSFileBackend;
|
||||
use InvalidArgumentException;
|
||||
use MediaWiki\Auth\AuthenticationRequest;
|
||||
use MediaWiki\Auth\AuthManager;
|
||||
use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest;
|
||||
|
@ -432,13 +432,12 @@ class FancyCaptcha extends SimpleCaptcha {
|
|||
/**
|
||||
* @param string $basename
|
||||
* @return array (salt, hash)
|
||||
* @throws Exception
|
||||
*/
|
||||
public function hashFromImageName( $basename ) {
|
||||
if ( preg_match( '/^image_([0-9a-f]+)_([0-9a-f]+)\\.png$/', $basename, $matches ) ) {
|
||||
return [ $matches[1], $matches[2] ];
|
||||
} else {
|
||||
throw new Exception( "Invalid filename '$basename'.\n" );
|
||||
throw new InvalidArgumentException( "Invalid filename '$basename'.\n" );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -466,7 +465,7 @@ class FancyCaptcha extends SimpleCaptcha {
|
|||
* Returns an array with 'salt' and 'hash' keys. Hash is
|
||||
* md5( $wgCaptchaSecret . $salt . $answer . $wgCaptchaSecret . $salt )[0..15]
|
||||
* @return array
|
||||
* @throws Exception When a captcha image cannot be produced.
|
||||
* @throws UnderflowException When a captcha image cannot be produced.
|
||||
*/
|
||||
public function getCaptcha() {
|
||||
$info = $this->pickImage();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"mediawiki/mediawiki-codesniffer": "41.0.0",
|
||||
"mediawiki/mediawiki-phan-config": "0.12.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.14.0",
|
||||
"mediawiki/minus-x": "1.1.1",
|
||||
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
||||
"php-parallel-lint/php-parallel-lint": "1.3.2"
|
||||
|
|
Loading…
Reference in a new issue