forked from php-vcr/php-vcr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
26 lines (26 loc) · 1.71 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
parameters:
level: 7
paths:
- src
- tests/VCR
# Can remove reportUnmatchedIgnoredErrors option after php 7.2 is no longer supported
reportUnmatchedIgnoredErrors: false
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./'
# PHPStan cannot deal with manually defined constants - can be removed once php 7.2 no longer supported
- '#Constant CURLPROXY_HTTPS not found.#'
- '#Call to an undefined method (VCR\\Util\\|)SoapClient::GetCityWeatherByZIP\(\)\.#'
- '#Call to an undefined method org\\bovigo\\vfs\\vfsStreamContent::hasChild\(\)\.#'
includes:
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
- vendor/phpstan/phpstan-beberlei-assert/extension.neon