Skip to content

Commit

Permalink
Fix deprecated curly brace syntax for string
Browse files Browse the repository at this point in the history
Closes #32.
  • Loading branch information
twose authored Sep 26, 2022
1 parent bb10983 commit 15c129e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/generator
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function scan_dir(string $dir, callable $filter = null): array
{
$files = scandir($dir);
$files = array_filter($files, function (string $f) {
return $f{0} !== '.';
return $f[0] !== '.';
});
array_walk($files, function (string &$value) use ($dir) {
$value = rtrim($dir, '/') . '/' . $value;
Expand Down

0 comments on commit 15c129e

Please sign in to comment.