From 397d199799edf16f1d721f68d53324eec346527c Mon Sep 17 00:00:00 2001 From: catch Date: Fri, 8 Oct 2021 13:36:53 +0100 Subject: [PATCH] Issue #3241296 by andypost, alexpott: core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php triggers deprecations on PHP 8.1 --- .../tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php index a656671567f2..34a7bdf0006b 100644 --- a/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php +++ b/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php @@ -48,8 +48,9 @@ class PathValidatorTest extends KernelTestBase { 'PUT', 'PATCH', 'DELETE', - // Used in CLI context. - NULL, + // NULL is used in CLI context which results in a request method of an + // empty string. + '', // If no request was even pushed onto the request stack, and hence. FALSE, ];