Skip to content

Commit

Permalink
Fix array_last item
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv committed Sep 1, 2024
1 parent d300a2e commit 26c61cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mjml.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ protected function getLocalResult(array $arguments): string
throw new ProcessFailedException($process);
}

$output = last(explode("\n", $process->getOutput()));
$items = explode("\n", $process->getOutput());

return base64_decode($output);
return base64_decode(end($items));
}
}

0 comments on commit 26c61cb

Please sign in to comment.