Issue #3241296 by andypost, alexpott: core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php triggers deprecations on PHP 8.1