Skip to content

Commit 2289943

Browse files
Eliminate risky truthy/falsy comparison
1 parent 269e798 commit 2289943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Runner/PhptTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private function parseEnvSection(string $content): array
314314
foreach (explode("\n", trim($content)) as $e) {
315315
$e = explode('=', trim($e), 2);
316316

317-
if (!empty($e[0]) && isset($e[1])) {
317+
if ($e[0] !== '' && isset($e[1])) {
318318
$env[$e[0]] = $e[1];
319319
}
320320
}

0 commit comments

Comments
 (0)