-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
41 lines (37 loc) · 1.51 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
includes:
- vendor/phpstan/phpstan-webmozart-assert/extension.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
fileExtensions:
- php
- dist
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# Wrong case for phpstan
-
message: '#Strict comparison using === between array and null will always evaluate to false.#'
path: 'src/Cli/Config/ConfigProvider.php'
# For convenience when faking assertions
- '#Left side of \&\& is always true#'
- '#Call to static method PHPUnit\\Framework\\Assert::assertTrue\(\) with true will always evaluate to true.#'
- '#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 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