Tests in mediawiki about AuthManager and AuthenticationRequest with the subclasses are using dynamic properties on mocks or on the objects to transfer stats within the test.
With php8.2 the use of dynamic properties is deprecated and the tests needs adjust for that.
This affects many tests, here a list I have found so far:
Deprecated: Creation of dynamic property Mock_AuthenticationRequest_3f593528::$foobar is deprecated in /workspace/src/tests/phpunit/includes/auth/AuthManagerTest.php on line 1234 159) MediaWiki\Auth\ButtonAuthenticationRequestTest::testLoadFromSubmission with data set "Button present" (array('foo', 'bar', 'baz'), array('Foobar'), array('foo', 'bar', 'baz', true)) Creation of dynamic property MediaWiki\Auth\ButtonAuthenticationRequest::$foo is deprecated /workspace/src/includes/auth/AuthenticationRequest.php:173 /workspace/src/tests/phpunit/includes/auth/AuthenticationRequestTestCase.php:89 16) MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testProviderRevokeAccessForUser Creation of dynamic property Mock_AuthenticationRequest_a7566a60::$done is deprecated /workspace/src/tests/phpunit/includes/auth/AbstractPrimaryAuthenticationProviderTest.php:70 17) MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt Creation of dynamic property Mock_AuthenticationRequest_008ef495::$id is deprecated /workspace/src/tests/phpunit/includes/auth/ConfirmLinkSecondaryAuthenticationProviderTest.php:122 /workspace/src/tests/phpunit/includes/auth/ConfirmLinkSecondaryAuthenticationProviderTest.php:183 18) MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt Creation of dynamic property Mock_AuthenticationRequest_008ef495::$id is deprecated /workspace/src/tests/phpunit/includes/auth/ConfirmLinkSecondaryAuthenticationProviderTest.php:122 /workspace/src/tests/phpunit/includes/auth/ConfirmLinkSecondaryAuthenticationProviderTest.php:205 19) MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset Creation of dynamic property MediaWiki\Auth\PasswordAuthenticationRequest::$allow is deprecated /workspace/src/tests/phpunit/includes/auth/ResetPasswordSecondaryAuthenticationProviderTest.php:125 11) MediaWiki\Auth\AuthManagerTest::testAuthentication with data set "Failure in pre-auth" (StatusValue Object (...), array(), array(), array(MediaWiki\Auth\AuthenticationResponse Object (...), MediaWiki\Auth\AuthenticationResponse Object (...))) Creation of dynamic property MediaWiki\Auth\RememberMeAuthenticationRequest::$pre is deprecated /workspace/src/tests/phpunit/includes/auth/AuthManagerTest.php:1011 22) MediaWiki\Auth\AuthManagerTest::testAccountCreation with data set "Pre-creation test fail in pre" (StatusValue Object (...), StatusValue Object (...), StatusValue Object (...), array(), array(), array(MediaWiki\Auth\AuthenticationResponse Object (...))) Creation of dynamic property Mock_AuthenticationRequest_49376c5e::$preTest is deprecated /workspace/src/tests/phpunit/includes/auth/AuthManagerTest.php:2094 32) MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests with data set #0 ('login', array('pre-login', 'primary-none-login', 'primary-create-login', 'primary-link-login', 'secondary-login', 'generic')) Creation of dynamic property Mock_AuthenticationRequest_e4e9e57d::$key is deprecated /workspace/src/tests/phpunit/includes/auth/AuthManagerTest.php:3067 41) MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequestsRequired Creation of dynamic property Mock_AuthenticationRequest_e4e9e57d::$key is deprecated /workspace/src/tests/phpunit/includes/auth/AuthManagerTest.php:3269 48) MediaWiki\Auth\AuthManagerTest::testAccountLink with data set "Primary pass" (StatusValue Object (...), array(MediaWiki\Auth\AuthenticationResponse Object (...)), array(MediaWiki\Auth\AuthenticationResponse Object (...))) Creation of dynamic property Mock_AuthenticationRequest_49376c5e::$primary is deprecated /workspace/src/tests/phpunit/includes/auth/AuthManagerTest.php:3620 49) MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange with data set #0 ('MediaWiki\Auth\AuthenticationRequest', 'UTSysop', Status Object (...), StatusValue Object (...), StatusValue Object (...)) Creation of dynamic property Mock_AuthenticationRequest_e4e9e57d::$password is deprecated /workspace/src/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php:401 50) MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData with data set #0 (false, 'MediaWiki\Auth\AuthenticationRequest', false, false) Creation of dynamic property Mock_AuthenticationRequest_e4e9e57d::$password is deprecated /workspace/src/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php:495 52) MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange with data set #0 ('MediaWiki\Auth\AuthenticationRequest', 'UTSysop', Status Object (...), StatusValue Object (...), StatusValue Object (...)) Creation of dynamic property Mock_AuthenticationRequest_e4e9e57d::$password is deprecated /workspace/src/tests/phpunit/includes/auth/TemporaryPasswordPrimaryAuthenticationProviderTest.php:406 53) MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData with data set #0 ('UTSysop', 'MediaWiki\Auth\AuthenticationRequest', false) Creation of dynamic property Mock_AuthenticationRequest_e4e9e57d::$password is deprecated /workspace/src/tests/phpunit/includes/auth/TemporaryPasswordPrimaryAuthenticationProviderTest.php:484 2) MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData with data set #0 (false, 'MediaWiki\Auth\AuthenticationRequest', false, false) Creation of dynamic property Mock_AuthenticationRequest_b778f1f8::$password is deprecated /workspace/src/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php:496
and Session:
155) MediaWiki\Session\SessionManagerTest::testGetSessionForRequest Creation of dynamic property FauxRequest::$unpersist1 is deprecated /workspace/src/tests/phpunit/includes/session/SessionManagerTest.php:151