-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.phpstan.neon
90 lines (73 loc) · 3.46 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# SPDX-FileCopyrightText: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
# SPDX-License-Identifier: GPL-3.0-or-later
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
level: 9
paths:
- src/
- tests/
scanDirectories:
- vendor
treatPhpDocTypesAsCertain: false
ignoreErrors:
-
message: "#^Constructor of class Art4\\\\JsonApiClient\\\\V1\\\\ResourceNull has an unused parameter \\$data\\.$#"
count: 1
path: src/V1/ResourceNull.php
# parameter is required by Art4\JsonApiClient\Element
-
message: "#^Constructor of class Art4\\\\JsonApiClient\\\\V1\\\\ResourceNull has an unused parameter \\$manager\\.$#"
count: 1
path: src/V1/ResourceNull.php
# parameter is required by Art4\JsonApiClient\Element
-
message: "#^Constructor of class Art4\\\\JsonApiClient\\\\V1\\\\ResourceNull has an unused parameter \\$parent\\.$#"
count: 1
path: src/V1/ResourceNull.php
# parameter is required by Art4\JsonApiClient\Element
-
message: "#^Constructor of an anonymous class has an unused parameter \\$data\\.$#"
count: 1
path: tests/BC/ElementTest.php
# parameter is required by Art4\JsonApiClient\Element
-
message: "#^Constructor of an anonymous class has an unused parameter \\$manager\\.$#"
count: 1
path: tests/BC/ElementTest.php
# parameter is required by Art4\JsonApiClient\Element
-
message: "#^Constructor of an anonymous class has an unused parameter \\$parent\\.$#"
count: 1
path: tests/BC/ElementTest.php
# parameter is required by Art4\JsonApiClient\Element
-
message: "#^Parameter \\#1 \\$string of class Art4\\\\JsonApiClient\\\\Input\\\\RequestStringInput constructor expects string, mixed given\\.$#"
count: 1
path: tests/Unit/Input/RequestStringInputTest.php
# We are providing an invalid parameter to test the exception message
-
message: "#^Parameter \\#1 \\$string of class Art4\\\\JsonApiClient\\\\Input\\\\ResponseStringInput constructor expects string, mixed given\\.$#"
count: 1
path: tests/Unit/Input/ResponseStringInputTest.php
# We are providing an invalid parameter to test the exception message
-
message: "#^Parameter \\#1 \\$key of method Art4\\\\JsonApiClient\\\\V1\\\\ResourceNull\\:\\:has\\(\\) expects Art4\\\\JsonApiClient\\\\Helper\\\\AccessKey\\|int\\|string, array given\\.$#"
count: 1
path: tests/Unit/V1/ResourceNullTest.php
# We are providing an invalid parameter to test the deprecation message
-
message: "#^Parameter \\#1 \\$key of method Art4\\\\JsonApiClient\\\\V1\\\\ResourceNull\\:\\:has\\(\\) expects Art4\\\\JsonApiClient\\\\Helper\\\\AccessKey\\|int\\|string, stdClass given\\.$#"
count: 1
path: tests/Unit/V1/ResourceNullTest.php
# We are providing an invalid parameter to test the deprecation message
-
message: "#^Parameter \\#1 \\$key of method Art4\\\\JsonApiClient\\\\Tests\\\\Fixtures\\\\AccessableTraitMock\\:\\:get\\(\\) expects Art4\\\\JsonApiClient\\\\Helper\\\\AccessKey\\|int\\|string, mixed given\\.$#"
count: 1
path: tests/Unit/Helper/AccessableTraitTest.php
# We are providing an invalid parameter to test the deprecation message
-
message: "#^Parameter \\#1 \\$key of method Art4\\\\JsonApiClient\\\\Tests\\\\Fixtures\\\\AccessableTraitMock\\:\\:has\\(\\) expects Art4\\\\JsonApiClient\\\\Helper\\\\AccessKey\\|int\\|string, mixed given\\.$#"
count: 1
path: tests/Unit/Helper/AccessableTraitTest.php
# We are providing an invalid parameter to test the deprecation message