Skip to content

Commit a263620

Browse files
authored
Fixed Deprecated Functionality error (part 2)
Fixed error Deprecated Functionality: Array and string offset access syntax with curly braces is deprecated in app/code/Magefan/RocketJavaScript/Model/Controller/ResultPlugin.php
1 parent 78f40bf commit a263620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/Controller/ResultPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private function isAllowedOnPage()
205205
}
206206
}
207207

208-
if ('*' == $path{mb_strlen($path) - 1}) {
208+
if ('*' == $path[mb_strlen($path) - 1]) {
209209
if (0 === mb_strpos($currentUrl, $baseUrl . '/' . trim($path, '*/'))) {
210210
$this->allowedOnPage = true;
211211
break;

0 commit comments

Comments
 (0)