Skip to content

Commit 263c400

Browse files
committed
4268: Updated PHPStan config
1 parent 84ac2c3 commit 263c400

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Taskfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ vars:
1010
DOCKER_COMPOSE: '{{.TASK_DOCKER_COMPOSE | default "docker compose"}}'
1111

1212
# We're not yet ready to normalize config files …
13-
YAML_FILES_GLOB: "Taskfile.yml .github/workflows/**.{yml,yaml}"
13+
YAML_FILES_GLOB: "Taskfile.yml .github/workflows/**.{yml,yaml} phpstan.dist.neon"
1414

1515
tasks:
1616
site:update:
@@ -163,7 +163,7 @@ tasks:
163163
cmds:
164164
- task: compose
165165
vars:
166-
COMPOSE_ARGS: run --rm prettier {{.YAML_FILES_GLOB}} --write
166+
COMPOSE_ARGS: run --rm prettier --parser yaml {{.YAML_FILES_GLOB}} --write
167167
silent: true
168168

169169
coding-standards:yaml:check:
@@ -172,7 +172,7 @@ tasks:
172172
- task: coding-standards:yaml:apply
173173
- task: compose
174174
vars:
175-
COMPOSE_ARGS: run --rm prettier {{.YAML_FILES_GLOB}} --check
175+
COMPOSE_ARGS: run --rm prettier --parser yaml {{.YAML_FILES_GLOB}} --check
176176
silent: true
177177

178178
code-analysis:

phpstan.dist.neon

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ parameters:
66
- public/
77
- src/
88
- tests/
9+
10+
ignoreErrors:
11+
- messages:
12+
- "#Method .+ has parameter .+ with no value type specified in iterable type array.#"
13+
- "#Method .+ return type has no value type specified in iterable type array.#"
14+
- "#Method .+ return type has no value type specified in iterable type iterable.#"
15+
- "#Property .+ type has no value type specified in iterable type array.#"
16+
- messages:
17+
- "#Class .+ implements generic interface .+ but does not specify its types: #"

0 commit comments

Comments
 (0)