Skip to content

Commit dafc473

Browse files
committed
13311-Magento248-Php84-Сompatibility
1 parent 20f5aab commit dafc473

File tree

24 files changed

+35
-35
lines changed

24 files changed

+35
-35
lines changed

Block/Adminhtml/System/Config/Form/UpdateInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(
6161
\Magento\Framework\HTTP\Client\Curl $curl,
6262
\Magento\Framework\Json\Helper\Data $jsonHelper,
6363
array $data = [],
64-
GetModuleVersionInterface $getModuleVersion = null
64+
?GetModuleVersionInterface $getModuleVersion = null
6565
) {
6666
$this->cacheManager = $context->getCache();
6767
$this->jsonHelper = $jsonHelper;

Block/Post/PostList/Toolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Toolbar extends \Magento\Framework\View\Element\Template
2929
public function __construct(
3030
Context $context,
3131
array $data = [],
32-
Config $config = null
32+
?Config $config = null
3333
) {
3434
parent::__construct($context, $data);
3535
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

Block/Post/View/Comments/Magefan/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Comment extends Template implements IdentityInterface
3535
public function __construct(
3636
Template\Context $context,
3737
array $data = [],
38-
TimezoneInterface $timezone = null
38+
?TimezoneInterface $timezone = null
3939
) {
4040
$this->timezone = $timezone ?: \Magento\Framework\App\ObjectManager::getInstance()
4141
->get(TimezoneInterface::class);

Controller/Category/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class View extends \Magefan\Blog\App\Action\Action
3333
public function __construct(
3434
\Magento\Framework\App\Action\Context $context,
3535
\Magento\Store\Model\StoreManagerInterface $storeManager,
36-
\Magefan\Blog\Model\Url $url = null
36+
?\Magefan\Blog\Model\Url $url = null
3737
) {
3838
parent::__construct($context);
3939
$this->_storeManager = $storeManager;

Controller/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public function __construct(
123123
\Magefan\Blog\Model\TagFactory $tagFactory,
124124
\Magento\Store\Model\StoreManagerInterface $storeManager,
125125
\Magento\Framework\App\ResponseInterface $response,
126-
UrlResolverInterface $urlResolver = null,
127-
Config $config = null
126+
?UrlResolverInterface $urlResolver = null,
127+
?Config $config = null
128128
) {
129129

130130
$this->actionFactory = $actionFactory;

Controller/Tag/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class View extends \Magefan\Blog\App\Action\Action
2929

3030
public function __construct(
3131
Context $context,
32-
\Magefan\Blog\Model\Url $url = null
32+
?\Magefan\Blog\Model\Url $url = null
3333
) {
3434
parent::__construct($context);
3535
$this->url = $url ?: $this->_objectManager->get(\Magefan\Blog\Model\Url::class);

Model/Author.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public function __construct(
5151
Url $url,
5252
\Magento\Store\Model\StoreManagerInterface $storeManager,
5353
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
54-
\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
55-
\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
54+
?\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
55+
?\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
5656
array $data = []
5757
) {
5858
parent::__construct($context, $registry, $resource, $resourceCollection, $data);

Model/AuthorRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function __construct(
6868
AuthorResourceModel $authorResourceModel,
6969
AuthorCollectionInterfaceFactory $collectionFactory,
7070
SearchResultsFactory $searchResultsFactory,
71-
CollectionProcessorInterface $collectionProcessor = null
71+
?CollectionProcessorInterface $collectionProcessor = null
7272
) {
7373
$this->authorFactory = $authorFactory;
7474
$this->authorResourceModel = $authorResourceModel;

Model/Category.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public function __construct(
102102
\Magento\Framework\Registry $registry,
103103
Url $url,
104104
\Magefan\Blog\Model\ResourceModel\Post\CollectionFactory $postCollectionFactory,
105-
\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
106-
\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
105+
?\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
106+
?\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
107107
array $data = []
108108
) {
109109
$this->_url = $url;

Model/CategoryRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function __construct(
6767
CategoryResourceModel $categoryResourceModel,
6868
CollectionFactory $collectionFactory,
6969
SearchResultsFactory $searchResultsFactory,
70-
CollectionProcessorInterface $collectionProcessor = null
70+
?CollectionProcessorInterface $collectionProcessor = null
7171
) {
7272
$this->categoryFactory = $categoryFactory;
7373
$this->categoryResourceModel = $categoryResourceModel;

0 commit comments

Comments
 (0)