The DataCollector in CommonsMetadata is looking for instance of LocalFileMock or ForeignDBFileMock to return the property $mockedCategories, the property is declared on the mock object and that means it is dynamic created, that is deprecated in php8.2
1) CommonsMetadata\HookHandlerTest::testLocalFile Creation of dynamic property LocalFileMock::$mockedCategories is deprecated /workspace/src/extensions/CommonsMetadata/tests/phpunit/ParserTestHelper.php:144 /workspace/src/extensions/CommonsMetadata/tests/phpunit/HookHandlerTest.php:33