Skip to content

Commit

Permalink
feat(github): add support 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
h4kuna committed Dec 31, 2024
1 parent 23eba38 commit f2e6064
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.2
coverage: none

- run: composer install --no-progress --prefer-dist
- run: composer phpstan -- --no-progress
- run: composer stan -- --no-progress
continue-on-error: true # is only informative
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0', '8.1', '8.2', '8.3']
php: ['8.2', '8.3', '8.4']

fail-fast: false

Expand All @@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.2
coverage: none

- run: composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
Expand All @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.2
coverage: none

- run: composer install --no-progress --prefer-dist
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
}
],
"require": {
"php": ">=8.0",
"h4kuna/critical-cache": "^v1.0",
"php": ">=8.2",
"h4kuna/critical-cache": "^v1.0.4",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.0 || ^2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static function transformCurrencies(array $currencies): array
/**
* @param int $beforeExpiration // 900 seconds -> 15 minutes
*/
public static function countTTL(DateTime $dateTime, int $beforeExpiration = 900, int $time = null): int
public static function countTTL(DateTime $dateTime, int $beforeExpiration = 900, ?int $time = null): int
{
$time ??= time();
if (($dateTime->getTimestamp() - $beforeExpiration) <= $time) {
Expand Down

0 comments on commit f2e6064

Please sign in to comment.