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

Change-Id: I3c21277a70107abf70599da2c3a4de194c6aad58
This commit is contained in:
libraryupgrader 2020-11-20 03:59:57 +00:00 committed by Daimona Eaytoy
parent e099312c17
commit 7c384798be
3 changed files with 3 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{
"require-dev": {
"mediawiki/mediawiki-codesniffer": "33.0.0",
"mediawiki/mediawiki-phan-config": "0.10.3",
"mediawiki/mediawiki-phan-config": "0.10.4",
"mediawiki/minus-x": "1.1.0",
"php-parallel-lint/php-console-highlighter": "0.5.0",
"php-parallel-lint/php-parallel-lint": "1.2.0"

View file

@ -533,6 +533,7 @@ class GenerateSampleNotifications extends Maintenance {
}
private function generateWikibase( User $user, User $agent ) {
// @phan-suppress-next-line PhanUndeclaredClassReference
if ( !class_exists( EchoNotificationsHandlers::class ) ) {
// should use !ExtensionRegistry::getInstance()->isLoaded( 'Wikibase' ) when possible
$this->output( "Skipping Wikibase. Extension not installed.\n" );

View file

@ -53,6 +53,7 @@ class RemoveInvalidNotification extends Maintenance {
$event = [];
$count = 0;
foreach ( $res as $row ) {
// @phan-suppress-next-line PhanPossiblyUndeclaredVariable
if ( !in_array( $row->event_id, $event ) ) {
$event[] = $row->event_id;
}