Skip to content

Commit 827970a

Browse files
author
Hwashiang Yu
committed
MC-30403: 'What is this ?' button does not work correctly
- Resolved static test failures
1 parent 5241035 commit 827970a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

app/code/Magento/Backend/Block/Store/Switcher.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public function getCurrentSelectionName()
462462
/**
463463
* Get current website name
464464
*
465-
* @return string
465+
* @return string | null
466466
*/
467467
public function getCurrentWebsiteName()
468468
{
@@ -473,12 +473,14 @@ public function getCurrentWebsiteName()
473473
return $website->getName();
474474
}
475475
}
476+
477+
return null;
476478
}
477479

478480
/**
479481
* Get current store group name
480482
*
481-
* @return string
483+
* @return string | null
482484
*/
483485
public function getCurrentStoreGroupName()
484486
{
@@ -489,12 +491,14 @@ public function getCurrentStoreGroupName()
489491
return $group->getName();
490492
}
491493
}
494+
495+
return null;
492496
}
493497

494498
/**
495499
* Get current store view name
496500
*
497-
* @return string
501+
* @return string | null
498502
*/
499503
public function getCurrentStoreName()
500504
{
@@ -505,6 +509,8 @@ public function getCurrentStoreName()
505509
return $store->getName();
506510
}
507511
}
512+
513+
return null;
508514
}
509515

510516
/**

0 commit comments

Comments
 (0)