-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon.dist
40 lines (37 loc) · 1.72 KB
/
phpstan.neon.dist
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
40
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-nette/extension.neon
- vendor/phpstan/phpstan-nette/rules.neon
- vendor/spaze/phpstan-disallowed-calls/extension.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-insecure-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-loose-calls.neon
- tests/PHPStan/disallowedCalls.neon
- tests/PHPStan/shipmonk.neon
parameters:
level: max
paths:
- src
exceptions:
implicitThrows: false
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
uncheckedExceptionClasses:
- LogicException
- Nette\InvalidStateException
- Nette\MemberAccessException
ignoreErrors:
- # used for checksum only
message: "#^Calling md5\\(\\) is forbidden, use hash\\(\\) with at least SHA\\-256 for secure hash, or password_hash\\(\\) for passwords\\.$#"
count: 1
path: src/BustCache/CacheBustingStrategies/ContentHash.php
- # conditional type narrowing
message: "#^Overwriting variable \\$path while changing its type from string to Nepada\\\\BustCache\\\\FileSystem\\\\Path$#"
count: 1
path: src/BustCache/FileSystem/File.php
- # conditional type narrowing
message: "#^Overwriting variable \\$manifestFilePath while changing its type from string to Nepada\\\\BustCache\\\\FileSystem\\\\Path$#"
count: 1
path: src/BustCache/Manifest/StaticManifestFinder.php