We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d62e013 commit 7d576feCopy full SHA for 7d576fe
Classes/Eel/ModuleHelper.php
@@ -12,8 +12,12 @@
12
*/
13
class ModuleHelper implements ProtectedContextAwareInterface
14
{
15
- public function formatStdOutput(string $stdOut): string
+ public function formatStdOutput(?string $stdOut): string
16
17
+ if (!$stdOut) {
18
+ return '';
19
+ }
20
+
21
$escapedString = $stdOut;
22
$lines = array_reverse(array_filter(preg_split("/\r\n|\n|\r/", $escapedString)));
23
$lineCount = count($lines);
0 commit comments