Steps to replicate the issue (include links if applicable):
- for any commit to EntitySchema, the quibble-vendor-mysql-php74-noselenium build fails. Here's an example: https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php74-noselenium/44850/console
The errors can also be reproduced on a local mediawiki installation:
- load the SpamBlacklist extension by adding wfLoadExtension( 'SpamBlacklist' ); to LocalSettings.php
- run tests with this command: mw docker mediawiki composer phpunit extensions/EntitySchema/tests/phpunit/
What happens?:
Many tests fail with an error in /extensions/SpamBlacklist/includes/Hooks.php:127
Here's one example:
17:19:38 13) EntitySchema\Tests\Integration\DataAccess\MediaWikiRevisionEntitySchemaUpdaterTest::testUpdateSchemaNameBadge_comment with data set "aliases changed" (EntitySchema\Services\Converter\NameBadge Object (...), EntitySchema\Services\Converter\NameBadge Object (...), 'entityschema-summary-update-s...liases', 'new alias, other') 17:19:38 array_keys() expects parameter 1 to be array, null given 17:19:38 17:19:38 /workspace/src/extensions/SpamBlacklist/includes/Hooks.php:127 17:19:38 /workspace/src/includes/HookContainer/HookContainer.php:159 17:19:38 /workspace/src/extensions/EntitySchema/src/DataAccess/MediaWikiRevisionEntitySchemaUpdater.php:353 17:19:38 /workspace/src/extensions/EntitySchema/src/DataAccess/MediaWikiRevisionEntitySchemaUpdater.php:202 17:19:38 /workspace/src/extensions/EntitySchema/tests/phpunit/integration/DataAccess/MediaWikiRevisionEntitySchemaUpdaterTest.php:1011 17:19:38 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:106