mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-11 17:01:13 +00:00
Upgrade to newer phan
Bug: T216931 Change-Id: I7617593141b3a646113e033fdbb1e9c102975a69
This commit is contained in:
parent
ab1d804449
commit
bd842b527c
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,4 +4,3 @@
|
||||||
composer.lock
|
composer.lock
|
||||||
node_modules/
|
node_modules/
|
||||||
vendor/
|
vendor/
|
||||||
tests/phan/issues
|
|
||||||
|
|
3
.phan/config.php
Normal file
3
.phan/config.php
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';
|
|
@ -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": {
|
||||||
"lint": "parallel-lint . --exclude vendor --exclude node_modules",
|
"lint": "parallel-lint . --exclude vendor --exclude node_modules",
|
||||||
|
|
|
@ -80,7 +80,7 @@ class TOTPSecondaryAuthenticationProvider extends AbstractSecondaryAuthenticatio
|
||||||
}
|
}
|
||||||
|
|
||||||
$oathuser = OATHAuthHooks::getOATHUserRepository()->findByUser( $user );
|
$oathuser = OATHAuthHooks::getOATHUserRepository()->findByUser( $user );
|
||||||
/** @suppress PhanUndeclaredProperty */
|
// @phan-suppress-next-line PhanUndeclaredProperty
|
||||||
$token = $request->OATHToken;
|
$token = $request->OATHToken;
|
||||||
|
|
||||||
if ( $oathuser->getKey() === null ) {
|
if ( $oathuser->getKey() === null ) {
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return require __DIR__ . '/../../vendor/mediawiki/mediawiki-phan-config/src/config.php';
|
|
Loading…
Reference in a new issue