Skip to content

Commit a02eb7e

Browse files
authored
Merge pull request #37 from php-http/fix-phpstan
fix phpstan configuration
2 parents 0128021 + 9aa9ea2 commit a02eb7e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

phpstan-baseline.neon

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Method Http\\Promise\\FulfilledPromise\:\:then\(\) should return Http\\Promise\\Promise\<V\> but returns Http\\Promise\\RejectedPromise\<mixed\>\.$#'
5+
identifier: return.type
6+
count: 1
7+
path: src/FulfilledPromise.php
8+
9+
-
10+
message: '#^Method Http\\Promise\\RejectedPromise\:\:then\(\) should return Http\\Promise\\Promise\<V\> but returns Http\\Promise\\RejectedPromise\<mixed\>\.$#'
11+
identifier: return.type
12+
count: 1
13+
path: src/RejectedPromise.php

phpstan.neon.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
parameters:
22
level: max
3-
checkMissingIterableValueType: false
43
treatPhpDocTypesAsCertain: false
54
paths:
65
- src
6+
includes:
7+
- phpstan-baseline.neon

0 commit comments

Comments
 (0)