Guard env parsing against missing str_starts_with
This commit is contained in:
@@ -60,7 +60,8 @@ class Config
|
||||
}
|
||||
|
||||
foreach ($lines as $line) {
|
||||
if (str_starts_with(trim($line), '#')) {
|
||||
$trimmed = trim($line);
|
||||
if ($trimmed === '' || $trimmed[0] === '#') {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user