This was found while working on a security issue in Cosmos that was being backported to the REL1_34 and REL1_35 branch (but did not occur on the patch for master).
This issue was found in the Cosmos skin when backporting as Cosmos (optionally) integrates with SocialProfile, since the patch to T265539 added SocialProfile as a soft dependency of Cosmos in the CI jobs.
error for the patch (unrelated to SP) that was backported to REL1_34:
16:28:20 There was 1 error: 16:28:20 16:28:20 1) SpecialPageFatalTest::testSpecialPageDoesNotFatal with data set "GiftManagerLogo" (GiftManagerLogo Object (...)) 16:28:20 === Logs generated by test case 16:28:20 [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"} 16:28:20 [localisation] [debug] LocalisationCache: using store LCStoreNull [] 16:28:20 [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"} 16:28:20 [wfDebug] [debug] IP: 127.0.0.1 {"private":false} 16:28:20 [localisation] [debug] LocalisationCache::isExpired(en): cache missing, need to make one [] 16:28:20 [wfDebug] [debug] User::getBlockedStatus: checking... {"private":false} 16:28:20 [wfDebug] [debug] IP: 127.0.0.1 {"private":false} 16:28:20 === 16:28:20 Undefined index: creator_user_id 16:28:20 16:28:20 /workspace/src/extensions/SocialProfile/UserGifts/includes/specials/SpecialGiftManagerLogo.php:53 16:28:20 /workspace/src/extensions/SocialProfile/UserGifts/includes/specials/SpecialGiftManagerLogo.php:631 16:28:20 /workspace/src/extensions/SocialProfile/UserGifts/includes/specials/SpecialGiftManagerLogo.php:163 16:28:20 /workspace/src/extensions/SocialProfile/UserGifts/includes/specials/SpecialGiftManagerLogo.php:45 16:28:20 /workspace/src/tests/phpunit/includes/specials/SpecialPageExecutor.php:108 16:28:20 /workspace/src/tests/phpunit/includes/specials/SpecialPageExecutor.php:36 16:28:20 /workspace/src/tests/phpunit/structure/SpecialPageFatalTest.php:40 16:28:20 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:455 16:28:20 /workspace/src/maintenance/doMaintenance.php:99
For REL1_35:
16:28:10 There was 1 error: 16:28:10 16:28:10 1) SpecialPageFatalTest::testSpecialPageDoesNotFatal with data set "UploadAvatar" (SpecialUploadAvatar Object (...)) 16:28:10 Declaration of UploadAvatar::performUpload($comment, $pageText, $watch, $user, $tags = Array) should be compatible with UploadBase::performUpload($comment, $pageText, $watch, $user, $tags = Array, ?string $watchlistExpiry = NULL) 16:28:10 16:28:10 /workspace/src/extensions/SocialProfile/UserProfile/includes/avatar/UploadAvatar.php:257 16:28:10 /workspace/src/includes/AutoLoader.php:109 16:28:10 /workspace/src/includes/AutoLoader.php:109 16:28:10 /workspace/src/extensions/SocialProfile/UserProfile/includes/specials/SpecialUploadAvatar.php:34 16:28:10 /workspace/src/includes/specials/SpecialUpload.php:201 16:28:10 /workspace/src/extensions/SocialProfile/UserProfile/includes/specials/SpecialUploadAvatar.php:58 16:28:10 /workspace/src/tests/phpunit/includes/specials/SpecialPageExecutor.php:107 16:28:10 /workspace/src/tests/phpunit/includes/specials/SpecialPageExecutor.php:37 16:28:10 /workspace/src/tests/phpunit/structure/SpecialPageFatalTest.php:43 16:28:10 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:446 16:28:10 /workspace/src/maintenance/doMaintenance.php:107 16:28:10 === Logs generated by test case 16:28:10 [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"} 16:28:10 [localisation] [debug] LocalisationCache using store LCStoreNull [] 16:28:10 [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"} 16:28:10 [localisation] [debug] LocalisationCache::isExpired(en): cache missing, need to make one [] 16:28:10 [MessageCache] [debug] MessageCache using store {class} {"class":"HashBagOStuff"} 16:28:10 [UserOptionsManager] [debug] Loading options from database {"user_id":1} 16:28:10 [wfDebug] [debug] ParserFactory: using default preprocessor {"private":false} 16:28:10 [localisation] [debug] LocalisationCache::isExpired(qqx): cache missing, need to make one [] 16:28:10 [wfDebug] [debug] User::getBlockedStatus: checking blocked status for UTSysop {"private":false} 16:28:10 [wfDebug] [debug] UploadBase::createFromRequest: class name: UploadFromFile {"private":false} 16:28:10 ===