diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bf79cc19..a0982451 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,13 +3,13 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: weekly + interval: monthly - package-ecosystem: "composer" directory: "/" allow: - dependency-name: "*phpstan*" schedule: - interval: weekly + interval: monthly groups: composer: patterns: diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index d378f49d..9e7ab3d2 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -19,13 +19,13 @@ jobs: name: Release version steps: - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + uses: actions/checkout@v4 with: token: ${{ secrets.GH_RELEASE_PAT }} fetch-depth: 0 - name: Prepare release - uses: getsentry/action-prepare-release@3cea80dc3938c0baf5ec4ce752ecb311f8780cdc #v1.6.4 + uses: getsentry/action-prepare-release@v1 env: GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }} with: diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index eeb88d15..1a1a1e8c 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -17,15 +17,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + uses: actions/checkout@v4 - name: Setup PHP - uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2.30.5 + uses: shivammathur/setup-php@v2 with: php-version: '8.2' - name: Install dependencies - uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0 + uses: ramsey/composer-install@v3 with: composer-options: --prefer-dist @@ -37,15 +37,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + uses: actions/checkout@v4 - name: Setup PHP - uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2.30.5 + uses: shivammathur/setup-php@v2 with: php-version: '8.3' - name: Install dependencies - uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0 + uses: ramsey/composer-install@v3 with: composer-options: --prefer-dist @@ -57,15 +57,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + uses: actions/checkout@v4 - name: Setup PHP - uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2.30.5 + uses: shivammathur/setup-php@v2 with: php-version: '8.3' - name: Install dependencies - uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0 + uses: ramsey/composer-install@v3 with: composer-options: --prefer-dist diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4449c344..063c70f6 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -68,12 +68,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + uses: actions/checkout@v4 with: fetch-depth: 2 - name: Setup PHP - uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2.30.5 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} coverage: pcov @@ -87,7 +87,7 @@ jobs: if: matrix.php == '8.0' && matrix.dependencies == 'lowest' - name: Install dependencies - uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0 + uses: ramsey/composer-install@v3 with: dependency-versions: ${{ matrix.dependencies }} composer-options: --prefer-dist @@ -96,7 +96,7 @@ jobs: run: vendor/bin/phpunit --coverage-clover=build/coverage-report.xml - name: Upload code coverage - uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1 + uses: codecov/codecov-action@v4 with: file: build/coverage-report.xml token: ${{ secrets.CODECOV_TOKEN }} @@ -123,10 +123,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + uses: actions/checkout@v4 - name: Setup PHP - uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2.30.5 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} coverage: pcov @@ -139,7 +139,7 @@ jobs: run: composer remove doctrine/dbal doctrine/doctrine-bundle symfony/messenger symfony/twig-bundle symfony/cache symfony/http-client --dev --no-update - name: Install dependencies - uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0 + uses: ramsey/composer-install@v3 with: dependency-versions: ${{ matrix.dependencies }} composer-options: --prefer-dist @@ -148,7 +148,7 @@ jobs: run: vendor/bin/phpunit --coverage-clover=build/coverage-report.xml - name: Upload code coverage - uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1 + uses: codecov/codecov-action@v4 with: file: build/coverage-report.xml token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 5906a68d..3f0de29f 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -31,6 +31,10 @@ 'method' => 'multi', 'property' => 'multi', ], + 'trailing_comma_in_multiline' => [ + 'after_heredoc' => false, + 'elements' => ['arrays'], + ], ]) ->setFinder( PhpCsFixer\Finder::create()