Skip to content

Commit

Permalink
.github/baseline-lt-7.2.neon
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Dec 11, 2024
1 parent e8e0b70 commit 10b3001
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/baseline-lt-7.2.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
ignoreErrors:
- '#Constant expression contains invalid operations#'
11 changes: 11 additions & 0 deletions .github/ignore-by-php-version.neon.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php declare(strict_types=1);
$includes = [];
if (PHP_VERSION_ID < 70200) {
$includes[] = __DIR__ . '/baseline-lt-7.2.neon';
}

$config = [];
$config['includes'] = $includes;
$config['parameters']['phpVersion'] = PHP_VERSION_ID;

return $config;
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.1', '8.3', '8.4']
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
includes:
- .github/ignore-by-php-version.neon.php
parameters:
scanFiles:
- .github/stubs/WeChatPay.Formatter.stub
Expand Down

0 comments on commit 10b3001

Please sign in to comment.