Skip to content

Commit c43cf16

Browse files
authored
CI: Cover PHP 8.4/8.5 (#167)
Co-authored-by: staabm <[email protected]>
1 parent 73968ba commit c43cf16

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

.github/workflows/static-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
php-version: '8.2'
2626
- os: ubuntu-latest
2727
php-version: '8.3'
28+
- os: ubuntu-latest
29+
php-version: '8.4'
30+
- os: ubuntu-latest
31+
php-version: '8.5'
2832

2933
steps:
3034
- name: Checkout

.github/workflows/unit-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
php-version: '8.2'
2525
- os: ubuntu-latest
2626
php-version: '8.3'
27+
- os: ubuntu-latest
28+
php-version: '8.4'
29+
- os: ubuntu-latest
30+
php-version: '8.5'
2731

2832
steps:
2933
- name: Checkout

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ includes:
55

66
parameters:
77
level: 8
8+
reportUnmatchedIgnoredErrors: false
89

910
paths:
1011
- src

src/TodoByPackageVersionRule.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace staabm\PHPStanTodoBy;
44

5-
use OutOfBoundsException;
65
use Composer\Semver\VersionParser;
6+
use OutOfBoundsException;
77
use PhpParser\Comment;
88
use PhpParser\Node;
99
use PHPStan\Analyser\Scope;
@@ -306,13 +306,13 @@ private function getVersionComparator(string $version): ?string
306306
return $comparator;
307307
}
308308

309-
public function getVersionRanges(string $packageName) : string
309+
public function getVersionRanges(string $packageName): string
310310
{
311311
if (!isset($this->installedVersions['versions'][$packageName])) {
312312
throw new OutOfBoundsException('Package "' . $packageName . '" is not installed');
313313
}
314314

315-
$ranges = array();
315+
$ranges = [];
316316
if (isset($this->installedVersions['versions'][$packageName]['pretty_version'])) {
317317
$ranges[] = $this->installedVersions['versions'][$packageName]['pretty_version'];
318318
}

src/utils/HttpClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function getMulti(array $urls, array $headers): array
6969
$result[$url] = [$responseCode, $response];
7070

7171
curl_multi_remove_handle($mh, $handle);
72+
/** @phpstan-ignore function.deprecated */
7273
curl_close($handle);
7374
}
7475
curl_multi_close($mh);

0 commit comments

Comments
 (0)