Skip to content

Commit f9d546f

Browse files
committed
Fix typing error
1 parent 0c3ed1c commit f9d546f

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

app/code/Magento/Backend/Model/Menu/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ public function getResult(\Magento\Backend\Model\Menu $menu)
102102
*/
103103
protected function _getParam($params, $paramName, $defaultValue = null)
104104
{
105-
return $params[$paramName]?? $defaultValue;
105+
return $params[$paramName] ?? $defaultValue;
106106
}
107107
}

app/code/Magento/BundleImportExport/Model/Export/RowCustomizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ function ($title, $storeName) {
321321
*/
322322
protected function getTypeValue($type)
323323
{
324-
return $this->typeMapping[$type]?? self::VALUE_DYNAMIC;
324+
return $this->typeMapping[$type] ?? self::VALUE_DYNAMIC;
325325
}
326326

327327
/**

app/code/Magento/Catalog/Helper/Output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function addHandler($method, $handler)
105105
public function getHandlers($method)
106106
{
107107
$method = strtolower($method);
108-
return $this->_handlers[$method] ?? : [];
108+
return $this->_handlers[$method] ?? [];
109109
}
110110

111111
/**

app/code/Magento/Catalog/Model/Product/Option.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public function getGroupByType($type = null)
312312
self::OPTION_TYPE_TIME => self::OPTION_GROUP_DATE,
313313
];
314314

315-
return $optionGroupsToTypes[$type] ?? : '';
315+
return $optionGroupsToTypes[$type] ?? '';
316316
}
317317

318318
/**

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ private function mapConditionType($conditionType)
931931
'eq' => 'in',
932932
'neq' => 'nin'
933933
];
934-
return $conditionsMap[$conditionType] ?? $conditionType;
934+
return $conditionsMap[$conditionType] ?? $conditionType;
935935
}
936936

937937
/**

app/code/Magento/Catalog/Ui/Component/Listing/Columns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ public function prepare()
8080
*/
8181
protected function getFilterType($frontendInput)
8282
{
83-
return $this->filterMap[$frontendInput] ?? $this->filterMap['default'];
83+
return $this->filterMap[$frontendInput] ?? $this->filterMap['default'];
8484
}
8585
}

lib/internal/Magento/Framework/DataObject/Copy/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ public function getFieldset($name, $root = 'global')
4444
if (empty($fieldsets)) {
4545
return null;
4646
}
47-
return $fieldsets[$name] ?? null;
47+
return $fieldsets[$name] ?? null;
4848
}
4949
}

lib/internal/Magento/Framework/View/Page/Config/Structure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,6 @@ public function populateWithArray(array $data)
251251
*/
252252
private function getArrayValueByKey($key, array $array)
253253
{
254-
return $array[$key] ?? [];
254+
return $array[$key] ?? [];
255255
}
256256
}

0 commit comments

Comments
 (0)