Skip to content

Commit

Permalink
Added PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p committed Aug 14, 2023
1 parent ca8a482 commit 006ffbe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions phpstan-baseline-8.0-specific.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#"
count: 2
path: tests/lib/Output/Generator/FieldTypeHashGeneratorBaseTest.php
4 changes: 4 additions & 0 deletions phpstan-baseline.neon.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
$includes[] = __DIR__ . '/phpstan-baseline-8.0.neon';
}

if (PHP_VERSION_ID > 80000 && PHP_VERSION_ID < 80100) {
$includes[] = __DIR__ . '/phpstan-baseline-8.0-specific.neon';
}

$config = [];
$config['includes'] = $includes;

Expand Down

0 comments on commit 006ffbe

Please sign in to comment.