Skip to content

Commit d9ea9f8

Browse files
committed
minor #1099 [PHPStan] Ignore errors in tests (OskarStark)
This PR was squashed before being merged into the main branch. Discussion ---------- [PHPStan] Ignore errors in tests | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | -- | License | MIT Commits ------- 3d94936 [PHPStan] Ignore errors in tests
2 parents f545f85 + 3d94936 commit d9ea9f8

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

src/agent/phpstan.dist.neon

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ parameters:
1414
-
1515
identifier: missingType.iterableValue
1616
path: tests/*
17+
reportUnmatched: false
18+
-
19+
identifier: missingType.iterableValue
20+
path: src/Bridge/**/Tests/*
21+
reportUnmatched: false
1722
-
1823
identifier: 'symfonyAi.forbidNativeException'
1924
path: tests/*
25+
reportUnmatched: false
26+
-
27+
identifier: 'symfonyAi.forbidNativeException'
28+
path: src/Bridge/**/Tests/*
29+
reportUnmatched: false

src/chat/phpstan.dist.neon

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,19 @@ parameters:
1010
ignoreErrors:
1111
-
1212
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
13+
-
14+
identifier: missingType.iterableValue
15+
path: tests/*
16+
reportUnmatched: false
17+
-
18+
identifier: missingType.iterableValue
19+
path: src/Bridge/**/Tests/*
20+
reportUnmatched: false
21+
-
22+
identifier: 'symfonyAi.forbidNativeException'
23+
path: tests/*
24+
reportUnmatched: false
25+
-
26+
identifier: 'symfonyAi.forbidNativeException'
27+
path: src/Bridge/**/Tests/*
28+
reportUnmatched: false

src/platform/phpstan.dist.neon

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,16 @@ parameters:
2222
-
2323
identifier: missingType.iterableValue
2424
path: tests/*
25+
reportUnmatched: false
26+
-
27+
identifier: missingType.iterableValue
28+
path: src/Bridge/**/Tests/*
29+
reportUnmatched: false
30+
-
31+
identifier: 'symfonyAi.forbidNativeException'
32+
path: tests/*
33+
reportUnmatched: false
34+
-
35+
identifier: 'symfonyAi.forbidNativeException'
36+
path: src/Bridge/**/Tests/*
37+
reportUnmatched: false

src/store/phpstan.dist.neon

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,19 @@ parameters:
1010
ignoreErrors:
1111
-
1212
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
13+
-
14+
identifier: missingType.iterableValue
15+
path: tests/*
16+
reportUnmatched: false
17+
-
18+
identifier: missingType.iterableValue
19+
path: src/Bridge/**/Tests/*
20+
reportUnmatched: false
21+
-
22+
identifier: 'symfonyAi.forbidNativeException'
23+
path: tests/*
24+
reportUnmatched: false
25+
-
26+
identifier: 'symfonyAi.forbidNativeException'
27+
path: src/Bridge/**/Tests/*
28+
reportUnmatched: false

0 commit comments

Comments
 (0)