Skip to content

Commit

Permalink
Changes needed to follow the syntax of PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanviduka committed Dec 11, 2024
1 parent e8dfde5 commit 1d6f2d1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,9 +587,9 @@ public function __construct(
StateInterface $cacheState,
Dir\Reader $reader,
VclGeneratorFactory $vclGeneratorFactory,
Json $serializer = null,
StoreManagerInterface $storeManager = null,
GeolocationRedirectMatcher $geolocationRedirectMatcher = null
?Json $serializer = null,
?StoreManagerInterface $storeManager = null,
?GeolocationRedirectMatcher $geolocationRedirectMatcher = null
) {
$this->serializer = $serializer ?: ObjectManager::getInstance()->get(Json::class);
$this->geolocationRedirectMatcher = $geolocationRedirectMatcher ?:
Expand Down
6 changes: 3 additions & 3 deletions Model/Config/Backend/Geoipcountry.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public function __construct(
ScopeConfigInterface $config,
TypeListInterface $cacheTypeList,
SerializerInterface $serializerInterface,
AbstractResource $resource = null,
AbstractDb $resourceCollection = null,
?AbstractResource $resource = null,
?AbstractDb $resourceCollection = null,
array $data = [],
Json $serializer = null
?Json $serializer = null
) {
$this->serializerInterface = $serializerInterface;
parent::__construct(
Expand Down
4 changes: 2 additions & 2 deletions Model/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public function __construct(
ClientFactory $clientFactory,
RequestFactory $requestFactory,
InboxFactory $inboxFactory,
AbstractResource $resource = null,
AbstractDb $resourceCollection = null,
?AbstractResource $resource = null,
?AbstractDb $resourceCollection = null,
array $data = []
) {
$this->scopeConfig = $scopeConfig;
Expand Down
4 changes: 2 additions & 2 deletions Model/Statistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ public function __construct(
Data $helper,
ProductMetadataInterface $productMetadata,
Http $request,
\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
AbstractDb $resourceCollection = null,
?\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
?AbstractDb $resourceCollection = null,
array $data = []
) {
$this->config = $config;
Expand Down

0 comments on commit 1d6f2d1

Please sign in to comment.