Skip to content

Commit

Permalink
[BUGFIX] Avoid "Array and string offset access syntax with curly brac…
Browse files Browse the repository at this point in the history
…es is deprecated" (FluidTYPO3#1641)

Co-authored-by: Sven Wappler <info@wappler.systems>
Co-authored-by: Claus Due <claus@namelesscoder.net>
  • Loading branch information
3 people authored May 9, 2020
1 parent b22c2bc commit fd3c3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Random/StringViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function renderStatic(
} else {
for ($i = 0; $i < $length; $i++) {
$randomIndex = random_int(0, mb_strlen($characters) - 1);
$string .= $characters{$randomIndex};
$string .= $characters[$randomIndex];
}
}
return $string;
Expand Down

0 comments on commit fd3c3f2

Please sign in to comment.