diff --git a/core/includes/errors.inc b/core/includes/errors.inc index 2e13cc5..05542a3 100644 --- a/core/includes/errors.inc +++ b/core/includes/errors.inc @@ -121,8 +121,8 @@ function error_displayable($error = NULL) { * backtrace, which is a standard PHP backtrace. * @param bool $fatal * An error is fatal in case: - * - An exception is thrown and not caught by something else. - * - A recoverable fatal error, which is a fatal error. + * - An exception is thrown and not caught by something else. + * - A recoverable fatal error, which is a fatal error. */ function _drupal_log_error($error, $fatal = FALSE) { $is_installer = drupal_installation_attempted(); diff --git a/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php index 52d0be1..60ad260 100644 --- a/core/modules/simpletest/src/TestBase.php +++ b/core/modules/simpletest/src/TestBase.php @@ -849,7 +849,7 @@ protected function assertErrorLogged($error_message) { } $content = file_get_contents($error_log_filename); - $rows = explode("\n", $content); + $rows = explode(PHP_EOL, $content); // We iterate over the rows in order to be able to remove the logged error // afterwards.