Skip to content

Commit f939301

Browse files
committed
13311-Magento248-Php84-Compatibility
1 parent 04798a8 commit f939301

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Model/Config.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct(
6464
* @param string|null $storeId
6565
* @return bool
6666
*/
67-
public function isEnabled(string $storeId = null): bool
67+
public function isEnabled(?string $storeId = null): bool
6868
{
6969
return (bool)$this->getConfig(self::XML_PATH_EXTENSION_ENABLED, $storeId);
7070
}
@@ -75,7 +75,7 @@ public function isEnabled(string $storeId = null): bool
7575
* @param string|null $storeId
7676
* @return bool
7777
*/
78-
public function isDeferredEnabled(string $storeId = null): bool
78+
public function isDeferredEnabled(?string $storeId = null): bool
7979
{
8080
return (bool)$this->getConfig(self::XML_PATH_DEFERRED_ENABLED, $storeId);
8181
}
@@ -86,7 +86,7 @@ public function isDeferredEnabled(string $storeId = null): bool
8686
* @param string|null $storeId
8787
* @return string
8888
*/
89-
public function getDisallowedPages(string $storeId = null): string
89+
public function getDisallowedPages(?string $storeId = null): string
9090
{
9191
return (string)$this->getConfig(self::XML_PATH_DEFERRED_DISALLOWED_PAGES, $storeId);
9292
}
@@ -97,7 +97,7 @@ public function getDisallowedPages(string $storeId = null): string
9797
* @param string|null $storeId
9898
* @return string
9999
*/
100-
public function getIgnoreJavaScript(string $storeId = null): string
100+
public function getIgnoreJavaScript(?string $storeId = null): string
101101
{
102102
return (string)$this->getConfig(self::XML_PATH_DEFERRED_IGNORE_JAVASCRIPT, $storeId);
103103
}
@@ -108,7 +108,7 @@ public function getIgnoreJavaScript(string $storeId = null): string
108108
* @param string|null $storeId
109109
* @return bool
110110
*/
111-
public function isBundlingEnabled(string $storeId = null): bool
111+
public function isBundlingEnabled(?string $storeId = null): bool
112112
{
113113
return (bool)$this->getConfig(MagentoConfig::XML_PATH_JS_BUNDLING, $storeId);
114114
}
@@ -137,7 +137,7 @@ public function getIncludedInBundling(): string
137137
* @param string|null $storeId
138138
* @return bool
139139
*/
140-
public function isAmpRequest(string $storeId = null): bool
140+
public function isAmpRequest(?string $storeId = null): bool
141141
{
142142
return (bool)$this->getConfig(self::XML_PATH_PLUMROCKET_AMP_ENABLED, $storeId);
143143
}
@@ -149,7 +149,7 @@ public function isAmpRequest(string $storeId = null): bool
149149
* @param string|null $storeId
150150
* @return mixed
151151
*/
152-
public function getConfig(string $path, string $storeId = null)
152+
public function getConfig(string $path, ?string $storeId = null)
153153
{
154154
return $this->scopeConfig->getValue($path, ScopeInterface::SCOPE_STORE, $storeId);
155155
}

Model/Config/Backend/DevSettings.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public function __construct(
5050
ScopeConfigInterface $config,
5151
TypeListInterface $cacheTypeList,
5252
RequestInterface $request,
53-
AbstractResource $resource = null,
54-
AbstractDb $resourceCollection = null,
53+
?AbstractResource $resource = null,
54+
?AbstractDb $resourceCollection = null,
5555
array $data = []
5656
) {
5757
$this->request = $request;

Model/Controller/ResultPlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ResultPlugin
4747
public function __construct(
4848
\Magento\Framework\App\RequestInterface $request,
4949
\Magefan\RocketJavaScript\Model\Config $config,
50-
\Magento\Store\Model\StoreManagerInterface $storeManager = null
50+
?\Magento\Store\Model\StoreManagerInterface $storeManager = null
5151
) {
5252
$this->request = $request;
5353
$this->config = $config;

Observer/AdminSystemConfigChangedSection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function __construct(
135135
StoreManagerInterface $storeManager,
136136
MagentoConfig $magentoConfig,
137137
ReinitableConfigInterface $appConfig,
138-
SettingChecker $settingChecker = null
138+
?SettingChecker $settingChecker = null
139139
) {
140140
$this->scopeConfig = $scopeConfig;
141141
$this->configLoader = $configLoader;

0 commit comments

Comments
 (0)