There was an error while loading. Please reload this page.
1 parent a8cf24e commit b0a9c70Copy full SHA for b0a9c70
1 file changed
src/Config/EnvFile.php
@@ -129,9 +129,7 @@ public function write(string $filePath = null): void
129
public function render(): string
130
{
131
$out = '';
132
-
133
foreach ($this->env as $env) {
134
135
if ($env['type'] === 'nl') {
136
$out .= PHP_EOL;
137
continue;
@@ -199,7 +197,7 @@ protected function parse(string $file): array
199
197
$commentCounter = 0;
200
198
201
foreach ($contents as $line) {
202
- switch (!($line = trim($line)) ? 'nl' : (strpos($line, '#') === 0) ? 'comment' : 'var') {
+ switch (!($line = trim($line)) ? 'nl' : ((strpos($line, '#') === 0) ? 'comment' : 'var')) {
203
case 'nl':
204
$env[] = [
205
'type' => 'nl'
0 commit comments