-
Notifications
You must be signed in to change notification settings - Fork 11
/
phpstan.neon
64 lines (56 loc) · 2.41 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
includes:
- vendor/jangregor/phpstan-prophecy/extension.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
parameters:
fileExtensions:
- php
- dist
excludes_analyse:
- tests/util/PhpUnitPolyfillTrait.php
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
reportUnmatchedIgnoredErrors: true
ignoreErrors:
-
message: '#Instanceof between(.*)VideoFilterInterface and (.*)VideoFilterInterface will(.*)evaluate to true.#'
path: src/Video/Filter/VideoFilterChain.php
-
message: '#Call to function is_array\(\) with array will always evaluate to true.#'
path: src/Video/Info/VideoStreamCollection.php
-
message: '#Call to function is_array\(\) with array will always evaluate to true.#'
path: src/Video/Info/AudioStreamCollection.php
-
message: '#Call to function is_array\(\) with array will always evaluate to true.#'
path: src/Video/Info/SubtitleStreamCollection.php
# For convenience when faking assertions
- '#Call to static method PHPUnit\\Framework\\Assert::assertTrue\(\) with true will always evaluate to true.#'
- '#Call to static method PHPUnit\\Framework\\Assert::assertTrue\(\) with false will always evaluate to false.#'
- '#Call to static method PHPUnit\\Framework\\Assert::assertFalse\(\) with true#'
- '#Call to static method PHPUnit\\Framework\\Assert::assertInstanceOf(.*)will always evaluate to true#'
# For allowing skipped tests
-
message: '#Unreachable statement - code above always terminates#'
path: tests/unit/Common/Assert/BinaryAssertionsTraitTest.php
# For allowing tests to attempt to break things
-
message: '#Parameter \#2 \$outputFile of method#'
path: tests/unit/Video/VideoConverterTest.php
-
message: '#Parameter \#1 \$filters of method#'
path: tests/unit/Video/Filter/VideoFilterChainTest.php
-
message: '#Parameter \#3 \$outputFile of method#'
path: tests/unit/Video/Adapter/FFMpegAdapterTest.php
-
message: '#Parameter(.*)of class(.*)expects array#'
path: tests/unit/Video/Info/VideoStreamCollectionTest.php
-
message: '#Parameter(.*)of class(.*)expects array#'
path: tests/unit/Video/Info/AudioStreamCollectionTest.php
-
message: '#Parameter(.*)of class(.*)expects array#'
path: tests/unit/Video/Info/SubtitleStreamCollectionTest.php