Skip to content

Commit d66cf7a

Browse files
authored
fix script: debug['level'] may be missing (#872)
fix key may be missing
1 parent d7fc48a commit d66cf7a

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/Commands/StartFrankenPhpCommand.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -307,17 +307,19 @@ protected function writeServerOutput($server)
307307
]);
308308
}
309309

310-
if ($debug['level'] === 'warn') {
311-
return $this->warn($message);
312-
}
313-
314-
if ($debug['level'] !== 'info') {
315-
// Request timeout...
316-
if (isset($debug['exit_status']) && $debug['exit_status'] === 255) {
317-
return;
310+
if (isset($debug['level'])) {
311+
if ($debug['level'] === 'warn') {
312+
return $this->warn($message);
318313
}
319314

320-
return $this->error($message);
315+
if ($debug['level'] !== 'info') {
316+
// Request timeout...
317+
if (isset($debug['exit_status']) && $debug['exit_status'] === 255) {
318+
return;
319+
}
320+
321+
return $this->error($message);
322+
}
321323
}
322324
});
323325
}

0 commit comments

Comments
 (0)