Skip to content

Commit 7ac1bc3

Browse files
committed
Added PHPStan
1 parent a364690 commit 7ac1bc3

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
php:
4141
- '7.4'
4242
- '8.0'
43-
- '8.1'
43+
- '8.2'
4444

4545
steps:
4646
- uses: actions/checkout@v3

phpstan-baseline-8.0-specific.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#"
5+
count: 2
6+
path: tests/lib/Output/Generator/FieldTypeHashGeneratorBaseTest.php

phpstan-baseline.neon.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
$includes[] = __DIR__ . '/phpstan-baseline-8.0.neon';
1414
}
1515

16+
if (PHP_VERSION_ID > 80000 && PHP_VERSION_ID < 80100) {
17+
$includes[] = __DIR__ . '/phpstan-baseline-8.0-specific.neon';
18+
}
19+
1620
$config = [];
1721
$config['includes'] = $includes;
1822

0 commit comments

Comments
 (0)