File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/internal/Magento/Framework/App/Router Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ protected function matchModuleFrontName(\Magento\Framework\App\RequestInterface
202
202
// get module name
203
203
if ($ request ->getModuleName ()) {
204
204
$ moduleFrontName = $ request ->getModuleName ();
205
- } elseif (strlen ($ param )) {
205
+ } elseif (strlen (( string ) $ param )) {
206
206
$ moduleFrontName = $ param ;
207
207
} else {
208
208
$ moduleFrontName = $ this ->_defaultPath ->getPart ('module ' );
@@ -271,7 +271,7 @@ protected function getNotFoundAction($currentModuleName)
271
271
protected function matchAction (\Magento \Framework \App \RequestInterface $ request , array $ params )
272
272
{
273
273
$ moduleFrontName = $ this ->matchModuleFrontName ($ request , $ params ['moduleFrontName ' ]);
274
- if (!strlen ($ moduleFrontName )) {
274
+ if (!strlen (( string ) $ moduleFrontName )) {
275
275
return null ;
276
276
}
277
277
You can’t perform that action at this time.
0 commit comments