Issue #3244592 by alexpott: Fix deprecation error in run-tests.sh on PHP 8.1

merge-requests/1319/head
catch 2021-10-20 10:14:04 +01:00
parent 6eee1db220
commit a1fc82b772
1 changed files with 1 additions and 1 deletions

View File

@ -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.