Skip to content

Commit

Permalink
Naming filter syntax update: Array and string offset access syntax wi…
Browse files Browse the repository at this point in the history
…th curly braces is deprecated in php 7.4
  • Loading branch information
samsonasik committed Aug 16, 2019
1 parent 3f88ef2 commit 050cb17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Filter/Naming.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function filter($value) : string
$chars = ['\'', '-'];
\array_walk($chars, function ($row) use (& $value) {
$position = \mb_strpos($value, $row);
if ($position !== false && isset($value{$position + 1})) {
$value{$position + 1} = \mb_strtoupper($value{$position + 1});
if ($position !== false && isset($value[$position + 1])) {
$value[$position + 1] = \mb_strtoupper($value[$position + 1]);
}
});

Expand Down

0 comments on commit 050cb17

Please sign in to comment.