Skip to content

Commit 5fba716

Browse files
committed
➕ allow php 8.4
1 parent 50a2efa commit 5fba716

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/tasks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php: [ '8.0', '8.1', '8.2', '8.3' ]
12+
php: [ '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
1313
steps:
1414
- name: Setup PHP with PECL extension
1515
uses: shivammathur/setup-php@v2
1616
with:
1717
php-version: ${{ matrix.php }}
18-
- uses: actions/checkout@v2
19-
- uses: actions/cache@v2
18+
- uses: actions/checkout@v5
19+
- uses: actions/cache@v4
2020
with:
2121
path: ~/.composer/cache/files
2222
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
}
1212
],
1313
"require": {
14-
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
14+
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
1515
"psr/log": "^1 || ^2 || ^3"
1616
},
1717
"require-dev": {
18-
"pluswerk/grumphp-config": "^6.0 || ^7.0"
18+
"pluswerk/grumphp-config": "^6.0 || ^7.0 || ^10.0"
1919
},
2020
"autoload": {
2121
"psr-4": {
@@ -29,6 +29,5 @@
2929
"phpstan/extension-installer": true,
3030
"pluswerk/grumphp-config": true
3131
}
32-
},
33-
"extra": {}
32+
}
3433
}

src/HeartBeat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function alive(string $url): void
2424
]
2525
);
2626

27-
$headers = @get_headers($url, PHP_MAJOR_VERSION >= 8 ? false : 0, $context);
27+
$headers = @get_headers($url, false, $context);
2828
if (false === $headers) {
2929
$this->logger?->warning('HeartBeat error occurred sending alive');
3030

0 commit comments

Comments
 (0)