Commit 504b0dbf authored by catch's avatar catch
Browse files

Issue #3233010 by alexpott, longwave:...

Issue #3233010 by alexpott, longwave: drupal_phpunit_contrib_extension_directory_roots() passes NULL to file_exists() causing deprecations in PHP 8.1
parent f8247057
Loading
Loading
Loading
Loading
+1 −1
Changes for core/tests/bootstrap.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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);
}

/**