diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aaae310..5f8dbc6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,40 +45,23 @@ jobs: - 8.1 - 8.2 - 8.3 + - 8.4 + - 8.5 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Install PHP with extensions uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: ${{ env.extensions }} - ini-values: date.timezone='UTC' + ini-values: date.timezone='UTC', register_argc_argv=On tools: composer:v2 - - name: Determine composer cache directory on Linux - if: matrix.os == 'ubuntu-latest' - run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV - - - name: Determine composer cache directory on Windows - if: matrix.os == 'windows-latest' - run: echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - - - name: Cache dependencies installed with composer - uses: actions/cache@v3 - with: - path: ${{ env.COMPOSER_CACHE_DIR }} - key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: | - php${{ matrix.php }}-composer- - - - name: Update composer - run: composer self-update - - - name: Install dependencies with composer - run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi + - name: Install Composer dependencies + uses: ramsey/composer-install@v3 - name: Run tests with codeception run: vendor/bin/codecept run diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 9a93005..5353504 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -26,4 +26,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4'] diff --git a/CHANGELOG.md b/CHANGELOG.md index 41e8ccb..74c49e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,10 @@ ## 1.0.2 under development -- no changes in this release. +- Enh #42: Add `"bump-after-update": true` option to `composer.json` (@vjik) +- Enh #42: Update composer dependencies (@vjik) +- Enh #42: Add PHP 8.4 and 8.5 support (@vjik) +- Enh #42: Disable `ensureOverrideAttribute` option in psalm configuration (@vjik) ## 1.0.1 June 23, 2024 diff --git a/README.md b/README.md index d8527d1..fc9a5f8 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ to suit your needs. ## Requirements -- PHP 8.1 or higher. +- PHP 8.1 - 8.5. ## Creating a project diff --git a/composer.json b/composer.json index bee0d95..faad394 100644 --- a/composer.json +++ b/composer.json @@ -29,20 +29,20 @@ } ], "require": { - "php": "^8.1", - "vlucas/phpdotenv": "^5.3", - "yiisoft/aliases": "^3.0", - "yiisoft/log": "^2.0", - "yiisoft/log-target-file": "^3.0", - "yiisoft/yii-console": "^2.0", - "yiisoft/yii-runner-console": "^2.0" + "php": "8.1 - 8.5", + "vlucas/phpdotenv": "^5.6.2", + "yiisoft/aliases": "^3.1.1", + "yiisoft/log": "^2.2", + "yiisoft/log-target-file": "^3.1", + "yiisoft/yii-console": "^2.4.2", + "yiisoft/yii-runner-console": "^2.2.1" }, "require-dev": { - "codeception/codeception": "^5.0", - "codeception/module-asserts": "^3.0", - "codeception/module-cli": "^2.0", - "codeception/module-phpbrowser": "^3.0", - "vimeo/psalm": "^5.24" + "codeception/codeception": "^5.2.2", + "codeception/module-asserts": "^3.1", + "codeception/module-cli": "^2.0.1", + "codeception/module-phpbrowser": "^3.0.2", + "vimeo/psalm": "^5.26.1 || ^6.14.2" }, "autoload": { "psr-4": { @@ -59,6 +59,7 @@ }, "config": { "sort-packages": true, + "bump-after-update": true, "allow-plugins": { "infection/extension-installer": true, "composer/package-versions-deprecated": true, diff --git a/psalm.xml b/psalm.xml index 9abd890..59deced 100644 --- a/psalm.xml +++ b/psalm.xml @@ -3,6 +3,7 @@ errorLevel="1" findUnusedBaselineEntry="true" findUnusedCode="false" + ensureOverrideAttribute="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"