Skip to content

Commit 241d996

Browse files
committed
Fix github action on PHP8.4 for phpstan
1 parent cd24320 commit 241d996

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
if: ${{ matrix.php == '8.5' }}
5757

5858
- name: Run static analysis
59-
run: composer phpstan
59+
run: composer phpstan-build
6060
if: ${{ matrix.php == '8.4' && matrix.stability == 'prefer-stable'}}
6161

6262
- name: Run Coding style rules

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"phpcs": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix -vvv --diff --dry-run --allow-risky=yes --ansi",
5353
"phpcs:fix": "php-cs-fixer fix -vvv --allow-risky=yes --ansi",
5454
"phpstan": "phpstan analyse -c phpstan.neon --ansi --memory-limit=256M",
55+
"phpstan-build": "phpstan analyse -c phpstan-build.neon --ansi --memory-limit=256M",
5556
"phpunit": "XDEBUG_MODE=coverage phpunit --coverage-text",
5657
"phpunit:min": "phpunit --no-coverage",
5758
"test": [

phpstan-build.neon

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
includes:
2+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
3+
- vendor/phpstan/phpstan-strict-rules/rules.neon
4+
- vendor/phpstan/phpstan-phpunit/extension.neon
5+
- vendor/phpstan/phpstan-phpunit/rules.neon
6+
parameters:
7+
ignoreErrors:
8+
- identifier: missingType.generics
9+
- identifier: missingType.iterableValue
10+
- '#implements deprecated interface League\\Csv\\ByteSequence#'
11+
- '#Parameter \#4 \$params of function stream_filter_(pre|ap)pend expects array, mixed given#'
12+
- '#Dom\\HTMLElement#'
13+
- '#Dom\\XMLDocument#'
14+
- '#Dom\\HTMLDocument#'
15+
- '#Dom\\Element#'
16+
level: max
17+
paths:
18+
- src
19+
reportUnmatchedIgnoredErrors: true
20+
treatPhpDocTypesAsCertain: false
21+
parallel:
22+
processTimeout: 300.0
23+

0 commit comments

Comments
 (0)