Skip to content

Commit

Permalink
Merge branch '2.4-develop' of https://github.com/mage-os/mirror-magento2
Browse files Browse the repository at this point in the history
 into 2.4-develop
  • Loading branch information
mage-os-ci committed Jan 15, 2025
2 parents afdc317 + 6340fa1 commit 1ff7b0c
Show file tree
Hide file tree
Showing 2,082 changed files with 6,213 additions and 6,403 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/AdminAnalytics/ViewModel/Metadata.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2019 Adobe
* All Rights Reserved.
*/

declare(strict_types=1);
Expand Down Expand Up @@ -65,7 +65,7 @@ public function __construct(
Session $authSession,
State $appState,
ScopeConfigInterface $config,
CspNonceProvider $nonceProvider = null
?CspNonceProvider $nonceProvider = null
) {
$this->productMetadata = $productMetadata;
$this->authSession = $authSession;
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/AdminAnalytics/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sort-packages": true
},
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-backend": "*",
"magento/module-config": "*",
Expand Down
10 changes: 5 additions & 5 deletions app/code/Magento/AdminNotification/Model/Feed.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\AdminNotification\Model;

Expand Down Expand Up @@ -107,10 +107,10 @@ public function __construct(
DeploymentConfig $deploymentConfig,
ProductMetadataInterface $productMetadata,
UrlInterface $urlBuilder,
AbstractResource $resource = null,
AbstractDb $resourceCollection = null,
?AbstractResource $resource = null,
?AbstractDb $resourceCollection = null,
array $data = [],
Escaper $escaper = null
?Escaper $escaper = null
) {
parent::__construct($context, $registry, $resource, $resourceCollection, $data);
$this->_backendConfig = $backendConfig;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2013 Adobe
* All Rights Reserved.
*/
namespace Magento\AdminNotification\Model\ResourceModel\System\Message;

Expand Down Expand Up @@ -40,8 +40,8 @@ public function __construct(
\Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy,
\Magento\Framework\Event\ManagerInterface $eventManager,
\Magento\Framework\Notification\MessageList $messageList,
\Magento\Framework\DB\Adapter\AdapterInterface $connection = null,
\Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null
?\Magento\Framework\DB\Adapter\AdapterInterface $connection = null,
?\Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null
) {
$this->_messageList = $messageList;
parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/AdminNotification/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sort-packages": true
},
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"lib-libxml": "*",
"magento/framework": "*",
"magento/module-backend": "*",
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/AdvancedPricingImportExport/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sort-packages": true
},
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-catalog": "*",
"magento/module-catalog-import-export": "*",
Expand Down
8 changes: 4 additions & 4 deletions app/code/Magento/AdvancedSearch/Model/ResourceModel/Index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2015 Adobe
* All Rights Reserved.
*/
namespace Magento\AdvancedSearch\Model\ResourceModel;

Expand Down Expand Up @@ -67,8 +67,8 @@ public function __construct(
StoreManagerInterface $storeManager,
MetadataPool $metadataPool,
$connectionName = null,
TableResolver $tableResolver = null,
DimensionCollectionFactory $dimensionCollectionFactory = null
?TableResolver $tableResolver = null,
?DimensionCollectionFactory $dimensionCollectionFactory = null
) {
parent::__construct($context, $connectionName);
$this->storeManager = $storeManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2015 Adobe
* All Rights Reserved.
*/
namespace Magento\AdvancedSearch\Model\ResourceModel\Search\Grid;

Expand All @@ -12,8 +12,6 @@
class Collection extends \Magento\Search\Model\ResourceModel\Query\Collection
{
/**
* Registry manager
*
* @var \Magento\Framework\Registry
*/
protected $_registryManager;
Expand All @@ -37,7 +35,7 @@ public function __construct(
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Framework\DB\Helper $resourceHelper,
\Magento\Framework\Registry $registry,
\Magento\Framework\DB\Adapter\AdapterInterface $connection = null,
?\Magento\Framework\DB\Adapter\AdapterInterface $connection = null,
$resource = null
) {
$this->_registryManager = $registry;
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/AdvancedSearch/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"magento/module-customer": "*",
"magento/module-search": "*",
"magento/module-store": "*",
"php": "~8.2.0||~8.3.0"
"php": "~8.2.0||~8.3.0||~8.4.0"
},
"type": "magento2-module",
"license": [
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Amqp/Setup/ConnectionValidator.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2015 Adobe
* All Rights Reserved.
*/
namespace Magento\Amqp\Setup;

Expand Down Expand Up @@ -45,7 +45,7 @@ public function isConnectionValid(
$password = '',
$virtualHost = '',
bool $ssl = false,
array $sslOptions = null
?array $sslOptions = null
) {
try {
$options = new FactoryOptions();
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Amqp/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"magento/framework": "*",
"magento/framework-amqp": "*",
"magento/framework-message-queue": "*",
"php": "~8.2.0||~8.3.0"
"php": "~8.2.0||~8.3.0||~8.4.0"
},
"type": "magento2-module",
"license": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
namespace Magento\Analytics\Model\Config\Backend;

Expand All @@ -23,7 +23,7 @@ class CollectionTime extends Value
/**
* The path to config setting of schedule of collection data cron.
*/
const CRON_SCHEDULE_PATH = 'crontab/default/jobs/analytics_collect_data/schedule/cron_expr';
public const CRON_SCHEDULE_PATH = 'crontab/default/jobs/analytics_collect_data/schedule/cron_expr';

/**
* @var WriterInterface
Expand All @@ -46,16 +46,16 @@ public function __construct(
ScopeConfigInterface $config,
TypeListInterface $cacheTypeList,
WriterInterface $configWriter,
AbstractResource $resource = null,
AbstractDb $resourceCollection = null,
?AbstractResource $resource = null,
?AbstractDb $resourceCollection = null,
array $data = []
) {
$this->configWriter = $configWriter;
parent::__construct($context, $registry, $config, $cacheTypeList, $resource, $resourceCollection, $data);
}

/**
* {@inheritdoc}
* @inheritdoc
*
* {@inheritdoc}. Set schedule setting for cron.
*
Expand Down
10 changes: 5 additions & 5 deletions app/code/Magento/Analytics/Model/Config/Backend/Enabled.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
namespace Magento\Analytics\Model\Config\Backend;

Expand All @@ -23,7 +23,7 @@ class Enabled extends Value
/**
* Path to field subscription enabled into config structure.
*/
const XML_ENABLED_CONFIG_STRUCTURE_PATH = 'analytics/general/enabled';
public const XML_ENABLED_CONFIG_STRUCTURE_PATH = 'analytics/general/enabled';

/**
* Service for processing of activation/deactivation MBI subscription.
Expand All @@ -48,8 +48,8 @@ public function __construct(
ScopeConfigInterface $config,
TypeListInterface $cacheTypeList,
SubscriptionHandler $subscriptionHandler,
AbstractResource $resource = null,
AbstractDb $resourceCollection = null,
?AbstractResource $resource = null,
?AbstractDb $resourceCollection = null,
array $data = []
) {
$this->subscriptionHandler = $subscriptionHandler;
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Analytics/ReportXml/DB/ReportValidator.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
namespace Magento\Analytics\ReportXml\DB;

Expand Down Expand Up @@ -46,7 +46,7 @@ public function __construct(ConnectionFactory $connectionFactory, QueryFactory $
* @return array
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function validate($name, SearchCriteriaInterface $criteria = null)
public function validate($name, ?SearchCriteriaInterface $criteria = null)
{
$query = $this->queryFactory->create($name);
$connection = $this->connectionFactory->getConnection($query->getConnectionName());
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Analytics/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-analytics",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/module-backend": "*",
"magento/module-config": "*",
"magento/module-integration": "*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
},
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
},
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-application-performance-monitor": "*",
"magento/module-new-relic-reporting": "*"
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/AsyncConfig/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-async-config",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-config": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/AsynchronousOperations/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"magento/module-authorization": "*",
"magento/module-backend": "*",
"magento/module-ui": "*",
"php": "~8.2.0||~8.3.0"
"php": "~8.2.0||~8.3.0||~8.4.0"
},
"suggest": {
"magento/module-admin-notification": "*",
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Authorization/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sort-packages": true
},
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-backend": "*"
},
Expand Down
14 changes: 7 additions & 7 deletions app/code/Magento/AwsS3/Driver/AwsS3.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2020 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -74,7 +74,7 @@ public function __construct(
FilesystemAdapter $adapter,
LoggerInterface $logger,
string $objectUrl,
MetadataProviderInterface $metadataProvider = null
?MetadataProviderInterface $metadataProvider = null
) {
$this->adapter = $adapter;
$this->logger = $logger;
Expand Down Expand Up @@ -207,7 +207,7 @@ private function createDirectoryRecursively(string $path): bool
/**
* @inheritDoc
*/
public function copy($source, $destination, DriverInterface $targetDriver = null): bool
public function copy($source, $destination, ?DriverInterface $targetDriver = null): bool
{
try {
$this->adapter->copy(
Expand Down Expand Up @@ -526,7 +526,7 @@ public function getRealPath($path)
/**
* @inheritDoc
*/
public function rename($oldPath, $newPath, DriverInterface $targetDriver = null): bool
public function rename($oldPath, $newPath, ?DriverInterface $targetDriver = null): bool
{
if ($oldPath === $newPath) {
return true;
Expand Down Expand Up @@ -636,7 +636,7 @@ private function glob(string $pattern): Generator
/**
* @inheritDoc
*/
public function symlink($source, $destination, DriverInterface $targetDriver = null): bool
public function symlink($source, $destination, ?DriverInterface $targetDriver = null): bool
{
return $this->copy($source, $destination, $targetDriver);
}
Expand Down Expand Up @@ -777,7 +777,7 @@ public function endOfFile($resource): bool
public function filePutCsv($resource, array $data, $delimiter = ',', $enclosure = '"')
{
//phpcs:ignore Magento2.Functions.DiscouragedFunction
return fputcsv($resource, $data, $delimiter, $enclosure);
return fputcsv($resource, $data, $delimiter, $enclosure, '\\');
}

/**
Expand Down
Loading

0 comments on commit 1ff7b0c

Please sign in to comment.