From 6d897d3c87a7965830732ad5454e742d51771da9 Mon Sep 17 00:00:00 2001 From: Louis Charette Date: Fri, 29 Nov 2024 19:43:11 -0500 Subject: [PATCH] Add PHP 8.4 to tests --- .github/workflows/Build.yml | 12 ++++++------ .github/workflows/PHPStan.yml | 2 +- app/src/Repository/TokenRepository.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 47377f6..20ca404 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - php_versions: ['8.1', '8.2', '8.3'] + php_versions: ['8.1', '8.2', '8.3', '8.4'] runs-on: ubuntu-latest name: PHPUnit - PHP ${{ matrix.php_versions }} - Memory SQLite @@ -60,7 +60,7 @@ jobs: strategy: fail-fast: false matrix: - php_versions: ['8.1', '8.2', '8.3'] + php_versions: ['8.1', '8.2', '8.3', '8.4'] runs-on: ubuntu-latest name: PHPUnit - PHP ${{ matrix.php_versions }} - MySQL @@ -129,7 +129,7 @@ jobs: strategy: fail-fast: false matrix: - php_versions: ['8.1', '8.2', '8.3'] + php_versions: ['8.1', '8.2', '8.3', '8.4'] runs-on: ubuntu-latest name: PHPUnit - PHP ${{ matrix.php_versions }} - MariaDB @@ -191,7 +191,7 @@ jobs: strategy: fail-fast: false matrix: - php_versions: ['8.1', '8.2', '8.3'] + php_versions: ['8.1', '8.2', '8.3', '8.4'] runs-on: ubuntu-latest name: PHPUnit - PHP ${{ matrix.php_versions }} - SQLite @@ -243,7 +243,7 @@ jobs: strategy: fail-fast: false matrix: - php_versions: ['8.1', '8.2', '8.3'] + php_versions: ['8.1', '8.2', '8.3', '8.4'] runs-on: ubuntu-latest name: PHPUnit - PHP ${{ matrix.php_versions }} - PostgreSQL @@ -302,7 +302,7 @@ jobs: strategy: fail-fast: false matrix: - php_versions: ['8.1', '8.2', '8.3'] + php_versions: ['8.1', '8.2', '8.3', '8.4'] runs-on: windows-latest name: PHPUnit - PHP ${{ matrix.php_versions }} - Windows diff --git a/.github/workflows/PHPStan.yml b/.github/workflows/PHPStan.yml index f73fd6c..5268003 100644 --- a/.github/workflows/PHPStan.yml +++ b/.github/workflows/PHPStan.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - php_versions: ['8.1', '8.2', '8.3'] + php_versions: ['8.1', '8.2', '8.3', '8.4'] runs-on: ubuntu-latest name: PHPStan - ${{ matrix.php_versions }} diff --git a/app/src/Repository/TokenRepository.php b/app/src/Repository/TokenRepository.php index 004e45a..ffd15c1 100644 --- a/app/src/Repository/TokenRepository.php +++ b/app/src/Repository/TokenRepository.php @@ -229,7 +229,7 @@ public function removeExpired(): int * * @return string */ - protected function generateRandomToken(string $gen = null): string + protected function generateRandomToken(?string $gen = null): string { do { $gen = md5(uniqid((string) mt_rand(), false));