diff --git a/composer.json b/composer.json index f1926c492..33613d201 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/maintenance/generateSampleNotifications.php b/maintenance/generateSampleNotifications.php index ef3a711ef..c4b1f9b7e 100644 --- a/maintenance/generateSampleNotifications.php +++ b/maintenance/generateSampleNotifications.php @@ -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" ); diff --git a/maintenance/removeInvalidNotification.php b/maintenance/removeInvalidNotification.php index 43ab102f2..647cec0ca 100644 --- a/maintenance/removeInvalidNotification.php +++ b/maintenance/removeInvalidNotification.php @@ -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; }