diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index 5be7af8..5c50704 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -4,6 +4,8 @@ name: Code Analysis on: pull_request: push: + branches: + - main jobs: @@ -13,15 +15,17 @@ jobs: matrix: actions: - name: PHPStan - run: composer phpstan + run: composer run phpstan - name: Nette Tester - run: composer tester -- -C + run: composer run test -- -C php: - "8.0" - "8.1" - "8.2" + - "8.3" + - "8.4" jwt: - name: JWT 5 @@ -30,7 +34,9 @@ jobs: - name: JWT 6 key: jwt6 - arg: '"firebase/php-jwt:^6.0"' + # arg: '"firebase/php-jwt:^6.0"' + # Temporary solution until the stable JWT 6 with PHP 8.4 support is released + arg: '"firebase/php-jwt:dev-main"' name: ${{ matrix.actions.name }} on PHP ${{ matrix.php }} with ${{ matrix.jwt.name }} runs-on: ubuntu-latest diff --git a/README.md b/README.md index bc29599..3658ca2 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Package is optimized for invoking in very early lifecycle phase of your App ## Requirements Package requires: -- PHP version 8.0, 8.1, 8.2 or 8.3 +- PHP version 8.0, 8.1, 8.2, 8.3 or 8.4 Enabler requires: diff --git a/composer.json b/composer.json index 5fbc0f4..8da0199 100644 --- a/composer.json +++ b/composer.json @@ -19,14 +19,14 @@ ], "homepage": "https://github.com/redbitcz/php-debug-mode-enabler", "require": { - "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", + "php": "~8.0", "ext-json": "*", "nette/utils": "^3.0 || ^4.0" }, "require-dev": { - "firebase/php-jwt": "^5.0 || ^6.0", - "nette/tester": "2.5.1", - "phpstan/phpstan": "1.9.14" + "firebase/php-jwt": "^5.0 || ^6.0 || dev-main", + "nette/tester": "^2.5 || dev-master", + "phpstan/phpstan": "1.12.6" }, "suggest": { "firebase/php-jwt": "Optional, required for SignedUrl plugin, compatible with version 5.x and 6.x" @@ -46,6 +46,6 @@ }, "scripts": { "phpstan": "phpstan analyze -c phpstan.neon --level 5", - "tester": "tester tests" + "test": "tester tests" } }