Issue #3241267 by alexpott, daffie: Drupal\Tests\Core\Session\WriteSafeSessionHandlerTest::testOtherMethods() fails due to a type error on PHP 8.1