Skip to content

Commit 76430af

Browse files
Merge pull request #69 from magento-cia/cia-2.4.8-beta2-develop-2.4-develop-sync-01142025
Cia 2.4.8 beta2 develop 2.4 develop sync 01142025
2 parents 4ddf695 + b7d1964 commit 76430af

File tree

34 files changed

+41
-39
lines changed

34 files changed

+41
-39
lines changed

app/code/Magento/BundleSampleData/Setup/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Installer implements Setup\SampleData\InstallerInterface
3232
*/
3333
public function __construct(
3434
\Magento\BundleSampleData\Model\Product $bundleProduct,
35-
StoreManagerInterface $storeManager = null
35+
?StoreManagerInterface $storeManager = null
3636
) {
3737
$this->bundleProduct = $bundleProduct;
3838
$this->storeManager = $storeManager ?: \Magento\Framework\App\ObjectManager::getInstance()

app/code/Magento/BundleSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-bundle-sample-data",
33
"description": "N/A",
44
"require": {
5-
"php": "~8.1.0||~8.2.0||~8.3.0",
5+
"php": "~8.2.0||~8.3.0||~8.4.0",
66
"magento/framework": "*",
77
"magento/module-bundle": "*",
88
"magento/module-catalog-sample-data": "*",

app/code/Magento/CatalogRuleSampleData/Model/Rule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __construct(
7272
\Magento\Catalog\Model\ResourceModel\Category\CollectionFactory $categoryCollectionFactory,
7373
\Magento\Customer\Model\GroupFactory $groupFactory,
7474
\Magento\Store\Model\WebsiteFactory $websiteFactory,
75-
Json $serializer = null
75+
?Json $serializer = null
7676
) {
7777
$this->fixtureManager = $sampleDataContext->getFixtureManager();
7878
$this->csvReader = $sampleDataContext->getCsvReader();
@@ -128,7 +128,7 @@ public function convertSerializedData($data)
128128
preg_match_all($regexp, $data, $matches);
129129
$replacement = null;
130130
foreach ($matches[1] as $matchedId => $matchedItem) {
131-
$extractedData = array_filter(explode(",", $matchedItem));
131+
$extractedData = array_filter(explode(",", $matchedItem ?? ''));
132132
foreach ($extractedData as $extractedItem) {
133133
$separatedData = array_filter(explode('=', $extractedItem));
134134
if ($separatedData[0] == 'url_key') {

app/code/Magento/CatalogRuleSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-catalog-rule-sample-data",
33
"description": "N/A",
44
"require": {
5-
"php": "~8.1.0||~8.2.0||~8.3.0",
5+
"php": "~8.2.0||~8.3.0||~8.4.0",
66
"magento/framework": "*",
77
"magento/module-catalog-rule": "*",
88
"magento/module-store": "*",

app/code/Magento/CatalogSampleData/Model/Attribute.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function install(array $fixtures)
108108
foreach ($rows as $row) {
109109
$data = [];
110110
foreach ($row as $key => $value) {
111-
$data[$header[$key]] = trim($value);
111+
$data[$header[$key]] = trim($value ?? '');
112112
}
113113
$data['attribute_set'] = explode("\n", $data['attribute_set']);
114114

@@ -144,7 +144,7 @@ public function install(array $fixtures)
144144

145145
if (is_array($data['attribute_set'])) {
146146
foreach ($data['attribute_set'] as $setName) {
147-
$setName = trim($setName);
147+
$setName = trim($setName ?? '');
148148
$attributeCount++;
149149
$attributeSet = $this->processAttributeSet($setName);
150150
$attributeGroupId = $attributeSet->getDefaultGroupId();
@@ -171,7 +171,7 @@ public function install(array $fixtures)
171171
protected function getOption($attribute, $data)
172172
{
173173
$result = [];
174-
$data['option'] = explode("\n", $data['option']);
174+
$data['option'] = explode("\n", $data['option'] ?? '');
175175
/** @var \Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection $options */
176176
$options = $this->attrOptionCollectionFactory->create()
177177
->setAttributeFilter($attribute->getId())

app/code/Magento/CatalogSampleData/Model/Product/Converter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ protected function getArrayValue($value)
165165
if (is_array($value)) {
166166
return $value;
167167
}
168-
if (false !== strpos($value, "\n")) {
168+
if ($value !== null && false !== strpos($value, "\n")) {
169169
$value = array_filter(explode("\n", $value));
170170
}
171171
return !is_array($value) ? [$value] : $value;

app/code/Magento/CatalogSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-catalog-sample-data",
33
"description": "N/A",
44
"require": {
5-
"php": "~8.1.0||~8.2.0||~8.3.0",
5+
"php": "~8.2.0||~8.3.0||~8.4.0",
66
"magento/framework": "*",
77
"magento/module-store": "*",
88
"magento/module-eav": "*",

app/code/Magento/CmsSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-cms-sample-data",
33
"description": "N/A",
44
"require": {
5-
"php": "~8.1.0||~8.2.0||~8.3.0",
5+
"php": "~8.2.0||~8.3.0||~8.4.0",
66
"magento/framework": "*",
77
"magento/module-cms": "*",
88
"magento/module-theme-sample-data": "*",

app/code/Magento/ConfigurableSampleData/Model/Product/Converter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected function convertAttributeValues($valuesData)
139139
$values = [];
140140
$prices = [];
141141
foreach ($valuesData as $item) {
142-
$itemData = explode(';', $item);
142+
$itemData = explode(';', $item ?? '');
143143
if (!empty($itemData[0])) {
144144
$values[] = $itemData[0];
145145
}

app/code/Magento/ConfigurableSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-configurable-sample-data",
33
"description": "N/A",
44
"require": {
5-
"php": "~8.1.0||~8.2.0||~8.3.0",
5+
"php": "~8.2.0||~8.3.0||~8.4.0",
66
"magento/framework": "*",
77
"magento/module-configurable-product": "*",
88
"magento/module-product-links-sample-data": "*",

0 commit comments

Comments
 (0)