From a1fc82b772dc565e0b859539e678acf4e803cc10 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Wed, 20 Oct 2021 10:14:04 +0100 Subject: [PATCH] Issue #3244592 by alexpott: Fix deprecation error in run-tests.sh on PHP 8.1 --- core/scripts/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index 2163902ba148..542006552675 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -480,7 +480,7 @@ function simpletest_script_init() { // using the presence of 'drupalci' in the sqlite argument. // @todo https://www.drupal.org/project/drupalci_testbot/issues/2860941 Use // better environment variable to detect DrupalCI. - if (!$args['execute-test'] && preg_match('/drupalci/', $args['sqlite'])) { + if (!$args['execute-test'] && preg_match('/drupalci/', $args['sqlite'] ?? '')) { // Update PHPUnit if needed and possible. There is a later check once the // autoloader is in place to ensure we're on the correct version. We need to // do this before the autoloader is in place to ensure that it is correct. -- GitLab