Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
39 lines (30 loc) · 1.96 KB
/
Copy pathphpstan.neon
File metadata and controls
39 lines (30 loc) · 1.96 KB
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
29
30
31
32
33
34
35
36
37
38
39
parameters:
level: 0
parallel:
# Raised from 300s to accommodate the additional docblock-parsing
# work introduced by the `@phpstan-method` array-shape annotations
# generated on every service client. Even at level 0, PHPStan has to
# lex every annotation to build its type registry, and there are
# ~36k of them across ~450 clients.
processTimeout: 1800.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\.#'
# These exception classes only exist in Guzzle 8, but instances cannot occur under Guzzle 7
- '#Class GuzzleHttp\\Exception\\(NetworkException|ResponseException|ResponseTransferException) not found\.#'
# The transport sharing class only exists in Guzzle 7.11+ and 8; usage is guarded by feature detection
- '#Class GuzzleHttp\\TransportSharing not found\.#'
reportUnmatchedIgnoredErrors: false