Skip to content

Commit 823ba81

Browse files
committed
Fix static test
1 parent f868f31 commit 823ba81

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/internal/Magento/Framework/Api/DataObjectHelper.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ protected function _setDataValues($dataObject, array $data, $interfaceName)
110110
}
111111
if ($dataObject instanceof \Magento\Framework\Model\AbstractModel
112112
&& !isset($data['id'])
113-
&& !isset($data['items'])?? $data['items'][0]['is_tax_included'])
114-
{
115-
$simpleData = array_filter($data, function ($e) { return is_scalar($e) || is_null($e); });
113+
&& !isset($data['items'])?? $data['items'][0]['is_tax_included']) {
114+
$simpleData = array_filter($data, function ($e) {
115+
return is_scalar($e) || is_null($e);
116+
});
116117
$dataObject->addData($simpleData);
117118
$data = array_filter(array_diff_key($data, $simpleData));
118119
if (\count($data) === 0) {

0 commit comments

Comments
 (0)