From 6e5ea74968c8bf4924a1ca6859b60131424fe019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bouc=CC=8Cek?= Date: Sun, 12 Oct 2025 19:11:44 +0200 Subject: [PATCH 1/3] GH Workflow: update action versions --- .github/workflows/code_analysis.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index 5c50704..af392ad 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -43,7 +43,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v5 # see https://github.com/shivammathur/setup-php @@ -62,14 +62,14 @@ jobs: echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: | ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-data-${{ hashFiles('composer.json') }}-php-${{ matrix.php }}-${{ matrix.jwt.name }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: | **/composer.lock From 5c0183f3c4008f1e6b723285654e8af85f5558fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bouc=CC=8Cek?= Date: Sun, 12 Oct 2025 19:36:24 +0200 Subject: [PATCH 2/3] Composer: Update PhpStan, fix found errors in code --- composer.json | 2 +- src/Enabler.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 8da0199..e77351a 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "require-dev": { "firebase/php-jwt": "^5.0 || ^6.0 || dev-main", "nette/tester": "^2.5 || dev-master", - "phpstan/phpstan": "1.12.6" + "phpstan/phpstan": "^2.1" }, "suggest": { "firebase/php-jwt": "Optional, required for SignedUrl plugin, compatible with version 5.x and 6.x" diff --git a/src/Enabler.php b/src/Enabler.php index 6ce8825..018bcc7 100644 --- a/src/Enabler.php +++ b/src/Enabler.php @@ -249,7 +249,8 @@ private function isTokenValid(array $token, ?string $name = null): bool } /** - * @return array + * @return array + * @phpstan-return list{string, array} */ private function generateToken(bool $value, int $expires): array { From ea7f8cc0b17f7e769e62437fc1b1c4148d81af05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bouc=CC=8Cek?= Date: Sun, 12 Oct 2025 19:36:35 +0200 Subject: [PATCH 3/3] GH Workflow: update to PHP 8.5 --- .github/workflows/code_analysis.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index af392ad..ae56ec2 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -26,6 +26,7 @@ jobs: - "8.2" - "8.3" - "8.4" + - "8.5" jwt: - name: JWT 5