diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f5ee98d4..d794a0d30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: code-analysis: 'yes' steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php @@ -33,10 +33,10 @@ jobs: - 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@v2 + uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} # Use composer.json for key, if composer.lock is not committed. @@ -59,5 +59,5 @@ jobs: run: vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml - name: Code Coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 if: matrix.coverage != 'none' diff --git a/lib/Component.php b/lib/Component.php index 8dd45e362..500643062 100644 --- a/lib/Component.php +++ b/lib/Component.php @@ -2,7 +2,6 @@ namespace Sabre\VObject; -use ReturnTypeWillChange; use Sabre\VObject; use Sabre\Xml; @@ -324,7 +323,7 @@ function ($a, $b) use ($sortScore, $tmp): int { * This method returns an array, with the representation as it should be * encoded in JSON. This is used to create jCard or jCal documents. */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function jsonSerialize(): array { $components = []; diff --git a/lib/Parser/MimeDir.php b/lib/Parser/MimeDir.php index 182506edf..9a50ca0ac 100644 --- a/lib/Parser/MimeDir.php +++ b/lib/Parser/MimeDir.php @@ -626,7 +626,7 @@ function ($matches) { // @codeCoverageIgnoreStart } - // @codeCoverageIgnoreEnd + // @codeCoverageIgnoreEnd }, $input );