-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathphpstan.neon
28 lines (21 loc) · 1.28 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
27
28
parameters:
level: 0
parallel:
processTimeout: 300.0
excludePaths:
- %rootDir%/../../../src/Crypto/Polyfill/*
- src/data/*
ignoreErrors:
# Intentional
- '#Aws\\Api\\Parser\\Crc32ValidatingParser::__construct\(\) does not call parent constructor from Aws\\Api\\Parser\\AbstractParser\.#'
- '#Aws\\S3\\(RetryableMalformedResponse|GetBucketLocation|AmbiguousSuccess)Parser::__construct\(\) does not call parent constructor from Aws\\Api\\Parser\\AbstractParser\.#'
- '#Unsafe usage of new static\(\)\.#'
- '#should return .* but return statement is missing#'
# HashContext definition sometimes not found by static analysis
- '#Property Aws\\PhpHash::\$context has unknown class HashContext as its type\.#'
- '#Property Aws\\Api\\Parser\\DecodingEventStreamIterator::\$hashContext has unknown class HashContext as its type\.#'
- '#Return typehint of method Aws\\PhpHash::getContext\(\) has invalid type HashContext\.#'
# There is a check for availability of constant that phpstan does not detect. https://github.com/phpstan/phpstan/issues/2971
- '#Access to undefined constant GuzzleHttp\\ClientInterface::MAJOR_VERSION#'
- '#Access to undefined constant GuzzleHttp\\ClientInterface::VERSION\.#'
reportUnmatchedIgnoredErrors: false