From 504b0dbf284561bb1f843c5823bd96f6350dd556 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Thu, 23 Sep 2021 11:01:26 +0100 Subject: [PATCH] Issue #3233010 by alexpott, longwave: drupal_phpunit_contrib_extension_directory_roots() passes NULL to file_exists() causing deprecations in PHP 8.1 --- core/tests/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tests/bootstrap.php b/core/tests/bootstrap.php index a14339d56288..5f5b494cfcfd 100644 --- a/core/tests/bootstrap.php +++ b/core/tests/bootstrap.php @@ -67,7 +67,7 @@ function drupal_phpunit_contrib_extension_directory_roots($root = NULL) { $paths[] = is_dir("$path/profiles") ? realpath("$path/profiles") : NULL; $paths[] = is_dir("$path/themes") ? realpath("$path/themes") : NULL; } - return array_filter($paths, 'file_exists'); + return array_filter($paths); } /** -- GitLab