File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
lib/internal/Magento/Framework Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -387,19 +387,21 @@ public function toString($format = '')
387
387
*/
388
388
public function __call ($ method , $ args )
389
389
{
390
- switch ($ method[ 0 ] ) {
391
- case 'g ' :
390
+ switch (\substr (( string ) $ method, 0 , 3 ) ) {
391
+ case 'get ' :
392
392
return $ this ->_data [
393
393
self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method )
394
394
] ?? null ;
395
- case 's ' :
395
+ case 'set ' :
396
396
$ this ->_data [
397
397
self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method )
398
398
] = $ args [0 ] ?? null ;
399
399
return $ this ;
400
- case 'u ' :
401
- return $ this ->unsetData (self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method ));
402
- case 'h ' :
400
+ case 'uns ' :
401
+ return $ this ->unsetData (
402
+ self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method )
403
+ );
404
+ case 'has ' :
403
405
return isset (
404
406
$ this ->_data [
405
407
self ::$ _underscoreCache [$ method ] ?? $ this ->_underscore ($ method )
You can’t perform that action at this time.
0 commit comments