Skip to content

Commit

Permalink
Update LogReader.php
Browse files Browse the repository at this point in the history
- Fix GLOB_BRACE constant not available on Alpine Linux.
  • Loading branch information
JackieDo committed Feb 18, 2023
1 parent 6dd933c commit c5bfb0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Jackiedo/LogReader/LogReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,9 @@ protected function getLogFileList($forceName = null)
$logPath = sprintf('%s%s%s', $path, DIRECTORY_SEPARATOR, $forceName);
}

return glob($logPath, GLOB_BRACE);
$globFlags = defined('GLOB_BRACE') ? GLOB_BRACE : 0;

return glob($logPath, $globFlags);
}

return false;
Expand Down

0 comments on commit c5bfb0f

Please sign in to comment.