From 26c61cbe5acf5de52c5968af0f4eb96d46e4c2ea Mon Sep 17 00:00:00 2001 From: Rias Date: Sun, 1 Sep 2024 14:33:55 +0200 Subject: [PATCH] Fix array_last item --- src/Mjml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mjml.php b/src/Mjml.php index 008ebaf..51967a2 100755 --- a/src/Mjml.php +++ b/src/Mjml.php @@ -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)); } }