When running the tests locally:
bawolff@bawolff:/var/www/html/w$ php8 tests/phpunit/phpunit.php extensions/Scribunto/tests/phpunit/ Using PHP 8.1.2 PHPUnit 8.5.30 #StandWithUkraine S.......S.................................................... 61 / 1192 ( 5%) ..........S...SS...SS........................................ 122 / 1192 ( 10%) ..S............................................S............. 183 / 1192 ( 15%) .E................................................SSS........ 244 / 1192 ( 20%) ..S...........................S.............................. 305 / 1192 ( 25%) ............................................................. 366 / 1192 ( 30%) .S........................................................... 427 / 1192 ( 35%) ........S.................................................... 488 / 1192 ( 40%) ............................................................. 549 / 1192 ( 46%) ............................................................. 610 / 1192 ( 51%) ............................................................. 671 / 1192 ( 56%) ..............................................S.S............ 732 / 1192 ( 61%) ............................................................. 793 / 1192 ( 66%) ............................................................. 854 / 1192 ( 71%) .............................................SS.............. 915 / 1192 ( 76%) ............................................................. 976 / 1192 ( 81%) ............................................................. 1037 / 1192 ( 86%) ............................................SSSSSSSSSSSSSSSSS 1098 / 1192 ( 92%) SSSSSSSSSSSSSSSSSSSSSSS...................................... 1159 / 1192 ( 97%) ................................. 1192 / 1192 (100%) Time: 52.61 seconds, Memory: 96.50 MB There was 1 error: 1) LuaStandalone: MediaWiki\Extension\Scribunto\Tests\Engines\LuaCommon\LuaCommonTest::testNonUtf8Errors preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated /var/www/html/w/includes/MagicWordArray.php:308 /var/www/html/w/includes/parser/Parser.php:4105 /var/www/html/w/includes/parser/Parser.php:1625 /var/www/html/w/includes/parser/Parser.php:713 /var/www/html/w/includes/language/MessageCache.php:1374 /var/www/html/w/includes/language/Message.php:1427 /var/www/html/w/includes/language/Message.php:1004 /var/www/html/w/includes/language/Message.php:1042 /var/www/html/w/extensions/Scribunto/includes/Engines/LuaCommon/LuaError.php:86 /var/www/html/w/extensions/Scribunto/tests/phpunit/Engines/LuaCommon/LuaCommonTest.php:809 /var/www/html/w/tests/phpunit/MediaWikiIntegrationTestCase.php:516
So far i haven't figured out what is going on here yet. Somehow the message is null, which should not happen.