From af2e486bf9d62ec2a411dd39a82c5f8da3072b35 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sat, 23 Mar 2024 11:02:18 -0400 Subject: [PATCH] Fix warnings for github actions --- .github/workflows/main.yml | 4 ++-- src/CssInlinerPlugin.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bd4f847..a363ea0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,9 @@ jobs: coverage: xdebug - name: Get composer cache directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer dependencies - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} diff --git a/src/CssInlinerPlugin.php b/src/CssInlinerPlugin.php index 5f634a5..22e2cff 100644 --- a/src/CssInlinerPlugin.php +++ b/src/CssInlinerPlugin.php @@ -96,7 +96,7 @@ private function handleSymfonyEmail(Email $message): void if ($body instanceof TextPart) { $message->setBody($this->processPart($body)); - } elseif ($body instanceof AlternativePart || $body instanceof MixedPart) { + } elseif ($body instanceof AbstractMultipartPart) { $part_type = get_class($body); $message->setBody(new $part_type( ...array_map(