-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
Copy pathphpstan.neon.dist
44 lines (43 loc) · 2.06 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
41
42
43
44
includes:
- phpstan-baseline.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
level: 7
paths:
- src/
- tests/
excludePaths:
- */pclzip.lib.php
- src/PhpWord/Shared/OLERead.php
- src/PhpWord/Reader/MsDoc.php
- src/PhpWord/Writer/PDF/MPDF.php
bootstrapFiles:
- tests/bootstrap.php
## <=PHP7.4
reportUnmatchedIgnoredErrors: false
ignoreErrors:
-
identifier: missingType.iterableValue
## <=PHP7.4
-
message: '#Parameter \#1 \$argument of class ReflectionClass constructor expects class-string<T of object>\|T of object, string given.#'
path: src/PhpWord/Element/AbstractContainer.php
-
message: '#Parameter \#1 \$function of function call_user_func expects callable\(\): mixed, string given.#'
path: src/PhpWord/Element/Image.php
-
message: '#Parameter \#1 \$argument of class ReflectionClass constructor expects class-string<T of object>\|T of object, string given.#'
path: src/PhpWord/IOFactory.php
-
message: '#Parameter \#1 \$function of function forward_static_call_array expects callable\(\): mixed, array{.+, string} given.#'
path: src/PhpWord/PhpWord.php
-
message: '#Parameter \#1 \$function of function call_user_func_array expects callable\(\): mixed, array{\$this\(PhpOffice\\PhpWord\\Shared\\ZipArchive\)\|PclZip\|ZipArchive, mixed} given.#'
path: src/PhpWord/Shared/ZipArchive.php
-
message: '#Parameter \#1 \$function of function call_user_func_array expects callable\(\): mixed, array{PhpOffice\\PhpWord\\Writer\\PDF\\AbstractRenderer, string} given.#'
path: src/PhpWord/Writer/PDF.php
-
message: '#Parameter \#1 \$argument of class ReflectionClass constructor expects class-string<object>\|object, class-string\|false given.#'
path: tests/PhpWordTests/Style/AbstractStyleTest.php