mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-28 00:30:15 +00:00
build: Bump phan to 0.10.2, remove taint-check
Declare a variable which is not set in all branches for static code analyzer, but at runtime it is Change-Id: I851bdbf9dc092d5213d74a03427b783f61e8946a
This commit is contained in:
parent
081ad97a0c
commit
e1cd44f28d
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"mediawiki/mediawiki-codesniffer": "31.0.0",
|
||||
"mediawiki/mediawiki-phan-config": "0.9.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.10.2",
|
||||
"mediawiki/minus-x": "1.0.0",
|
||||
"php-parallel-lint/php-console-highlighter": "0.4.0",
|
||||
"php-parallel-lint/php-parallel-lint": "1.0.0"
|
||||
|
@ -19,8 +19,5 @@
|
|||
"doc": [
|
||||
"doxygen"
|
||||
]
|
||||
},
|
||||
"extra": {
|
||||
"phan-taint-check-plugin": "2.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ class ApiCoreThank extends ApiThank {
|
|||
throw new LogicException();
|
||||
}
|
||||
|
||||
$recipientUsername = null;
|
||||
// Determine thanks parameters.
|
||||
if ( $type === 'log' ) {
|
||||
$logEntry = $this->getLogEntryFromId( $id );
|
||||
|
|
Loading…
Reference in a new issue