File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
lib/internal/Magento/Framework Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -389,23 +389,17 @@ public function __call($method, $args)
389
389
{
390
390
switch ($ method [0 ].($ method [1 ] ?? '' ).($ method [2 ] ?? '' )) {
391
391
case 'get ' :
392
- if (isset ($ args [0 ]) && $ args [0 ] !== null ) {
393
- return $ this ->getData (
394
- self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method ),
395
- $ args [0 ]
396
- );
397
- }
398
-
399
392
return $ this ->_data [
400
393
self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method )
401
394
] ?? $ this ->getData (
402
- self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method )
395
+ self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method ),
396
+ $ args [0 ] ?? null
403
397
);
404
398
case 'set ' :
405
- $ this ->_data [
406
- self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method )
407
- ] = $ args [0 ] ?? null ;
408
- return $ this ;
399
+ return $ this ->setData (
400
+ self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method ),
401
+ $ args [0 ] ?? null
402
+ ) ;
409
403
case 'uns ' :
410
404
return $ this ->unsetData (
411
405
self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method )
You can’t perform that action at this time.
0 commit comments