Skip to content

Commit 24cc149

Browse files
authored
Merge pull request #66 from magefan/13550-TypeError-on-magento-2.4.5-and-php8.1
Update AdminNotificationFeed.php
2 parents 6315f33 + af2bbd6 commit 24cc149

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Model/AdminNotificationFeed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,11 @@ protected function parentGetFeedData()
323323
$curl = $this->curlFactory->create();
324324
$curl->setOptions(
325325
[
326-
'timeout' => 2,
327-
'useragent' => $this->productMetadata->getName()
326+
CURLOPT_TIMEOUT => 2,
327+
CURLOPT_USERAGENT => $this->productMetadata->getName()
328328
. '/' . $this->productMetadata->getVersion()
329329
. ' (' . $this->productMetadata->getEdition() . ')',
330-
'referer' => $this->urlBuilder->getUrl('*/*/*')
330+
CURLOPT_REFERER => $this->urlBuilder->getUrl('*/*/*')
331331
]
332332
);
333333
$curl->write('GET', $this->getFeedUrl(), '1.0');

0 commit comments

Comments
 (0)