From 1912151e40135f5ad549d7a083e9d919ec2c9458 Mon Sep 17 00:00:00 2001
From: catch <6915-catch@users.noreply.drupalcode.org>
Date: Fri, 13 Sep 2024 17:01:29 +0100
Subject: [PATCH] Issue #3465826 by arunkumark, andypost: Remove deprecated in
 PHP 8.4 the \E_STRICT usage

---
 core/includes/errors.inc              | 1 -
 core/lib/Drupal/Core/DrupalKernel.php | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/includes/errors.inc b/core/includes/errors.inc
index ae29202ba90c..2015dbd3e899 100644
--- a/core/includes/errors.inc
+++ b/core/includes/errors.inc
@@ -34,7 +34,6 @@ function drupal_error_levels() {
     E_USER_ERROR => ['User error', RfcLogLevel::ERROR],
     E_USER_WARNING => ['User warning', RfcLogLevel::WARNING],
     E_USER_NOTICE => ['User notice', RfcLogLevel::NOTICE],
-    E_STRICT => ['Strict warning', RfcLogLevel::DEBUG],
     E_RECOVERABLE_ERROR => ['Recoverable fatal error', RfcLogLevel::ERROR],
     E_DEPRECATED => ['Deprecated function', RfcLogLevel::DEBUG],
     E_USER_DEPRECATED => ['User deprecated function', RfcLogLevel::DEBUG],
diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php
index ae5a99cdb1b0..2d9b63dfd790 100644
--- a/core/lib/Drupal/Core/DrupalKernel.php
+++ b/core/lib/Drupal/Core/DrupalKernel.php
@@ -983,8 +983,7 @@ public static function bootEnvironment($app_root = NULL) {
       $app_root = static::guessApplicationRoot();
     }
 
-    // Enforce E_STRICT, but allow users to set levels not part of E_STRICT.
-    error_reporting(E_STRICT | E_ALL);
+    error_reporting(E_ALL);
 
     // Override PHP settings required for Drupal to work properly.
     // sites/default/default.settings.php contains more runtime settings.
-- 
GitLab