Skip to content

Commit 91e1cf1

Browse files
authored
Improve performance of DataObject magic calls and addData
Fix failing static tests
1 parent 780f6b6 commit 91e1cf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/DataObject.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,13 @@ public function __call($method, $args)
394394
self::$_underscoreCache[$method] ?? $this->_underscore($method),
395395
$args[0]
396396
);
397-
}
397+
}
398398

399399
return $this->_data[
400400
self::$_underscoreCache[$method] ?? $this->_underscore($method)
401401
] ?? $this->getData(
402402
self::$_underscoreCache[$method] ?? $this->_underscore($method),
403-
$args[0] ?? null
403+
$args[0] ?? null
404404
);
405405
case 'set':
406406
return $this->setData(

0 commit comments

Comments
 (0)