From 3e373408873be53be846113ffe0cc7d8fab941de Mon Sep 17 00:00:00 2001 From: Abdellatif EL MIZEB Date: Mon, 18 Aug 2025 11:21:25 +0200 Subject: [PATCH] Fix PHP 8.4 Deprecation: Explicitly Mark Nullable Parameter (#157) --- .../AdminAnalytics/Model/Condition/CanViewNotification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/AdminAnalytics/Model/Condition/CanViewNotification.php b/app/code/Magento/AdminAnalytics/Model/Condition/CanViewNotification.php index 34084e97e692..c0efc3909cec 100644 --- a/app/code/Magento/AdminAnalytics/Model/Condition/CanViewNotification.php +++ b/app/code/Magento/AdminAnalytics/Model/Condition/CanViewNotification.php @@ -55,7 +55,7 @@ class CanViewNotification implements VisibilityConditionInterface public function __construct( Logger $viewerLogger, CacheInterface $cacheStorage, - ScopeConfigInterface $scopeConfig = null + ?ScopeConfigInterface $scopeConfig = null ) { $this->viewerLogger = $viewerLogger; $this->cacheStorage = $cacheStorage;