forked from php-vcr/php-vcr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
19 lines (19 loc) · 1.22 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
parameters:
level: 7
paths:
- src
ignoreErrors:
# This part of PHP is not very well documented, resulting PHPStan's definitions not being accurate
- "#Access to an undefined property object::\\$data\\.#"
- "#Access to an undefined property object::\\$datalen\\.#"
-
message: '#Unreachable statement - code above always terminates.#'
path: src/VCR/CodeTransform/AbstractCodeTransform.php
# PHPStan cannot detect that strrpos will succeed (because of Assertion above) in HttpUtil::parseStatus
- '#Parameter .* \$str(ing)? of function substr expects string, string\|false given.#'
# The EventDispatcherInterface::dispatch signature is different (!) between Symfony <4.3 and >=4.3
- '/Parameter #1 \$event of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects object, string\|null given./'
- '/Parameter #2 \$eventName of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects string\|null, VCR\\Event\\Event given./'
includes:
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
- vendor/phpstan/phpstan-beberlei-assert/extension.neon