Repository navigation
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
119 lines (119 loc) · 6.65 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
119 lines (119 loc) · 6.65 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
parameters:
level: max
paths:
- src
- tests
tmpDir: reports/phpstan
ignoreErrors:
# tiny-blocks/collection generics carry a mixed TValue on Internal command and definition types.
- identifier: missingType.generics
paths:
- src/Internal/Commands/DockerExecute.php
- src/Internal/Commands/DockerCreate.php
- src/Internal/Containers/ContainerWaits.php
- src/Internal/Containers/Definitions/ContainerDefinition.php
- src/Internal/Containers/Environment/EnvironmentVariables.php
# Internal collaborators take raw config arrays at the boundary, where PHPDoc is prohibited.
- identifier: missingType.iterableValue
paths:
- src/Internal/Containers/ContainerLauncher.php
- src/Internal/Containers/OneShotContainer.php
- src/Internal/Containers/Drivers/MySQL/MySQLStartup.php
- src/Internal/Commands/DockerExecute.php
- src/Internal/Commands/DockerCreate.php
- src/Internal/Containers/Address/Ports.php
- src/Internal/Containers/ContainerInspection.php
- src/Internal/Containers/Definitions/ContainerDefinition.php
- src/Internal/Containers/Definitions/CopyInstruction.php
- src/Internal/Containers/Drivers/MySQL/JdbcUrl.php
- src/Internal/Containers/Drivers/Flyway/FlywaySettings.php
- src/Internal/Containers/Drivers/MySQL/MySQLCommands.php
- src/Internal/Containers/Environment/EnvironmentVariables.php
# Internal command builders return argument lists assembled from collection mixed values.
- identifier: return.type
paths:
- src/Internal/Commands/DockerCopy.php
- src/Internal/Commands/DockerExecute.php
- src/Internal/Commands/DockerCreate.php
- src/Internal/Containers/Address/Ports.php
# Collection each/reduce pass concrete closures against the mixed-typed variadic API.
- identifier: argument.type
paths:
- src/Internal/Containers/ContainerLauncher.php
- src/Internal/Containers/ContainerWaits.php
- src/Internal/Containers/Address/Ports.php
- src/Internal/Containers/Definitions/ContainerDefinition.php
# ContainerSharing starts a new container through a plain Closure, whose result is mixed to phpstan.
- identifier: argument.type
path: src/Internal/Containers/ContainerSharing.php
# docker inspect json_decode and sprintf feed mixed values across the system boundary.
- identifier: argument.type
paths:
- src/Internal/Containers/ContainerInspection.php
- src/Internal/Containers/Drivers/MySQL/MySQLCommands.php
# MySQLCommands assembles the setup argument list as a raw array, where PHPDoc is prohibited.
- identifier: argument.type
path: src/Internal/Containers/Drivers/MySQL/MySQLStartup.php
# FlywaySettings applies its raw settings map, whose values phpstan reads as mixed, where PHPDoc is prohibited.
- identifier: argument.type
path: src/Internal/Containers/Drivers/Flyway/FlywaySettings.php
# MySQLStartup appends the server arguments as a raw array, where PHPDoc is prohibited inside Internal.
- identifier: argument.type
path: src/MySQLDockerContainer.php
# docker inspect json_decode produces mixed offsets read in ContainerInspection.
- identifier: offsetAccess.nonOffsetAccessible
path: src/Internal/Containers/ContainerInspection.php
# docker inspect json_decode yields a mixed port binding cast to int at the boundary.
- identifier: cast.int
path: src/Internal/Containers/Address/Ports.php
# docker inspect json_decode yields a mixed value iterated at the boundary.
- identifier: foreach.nonIterable
path: src/Internal/Containers/ContainerInspection.php
# Environment variable values arrive as mixed and are cast to string at the boundary.
- identifier: cast.string
path: src/Internal/Containers/Environment/EnvironmentVariables.php
# Fixtures and mocks accept raw arrays, where PHPDoc is prohibited inside tests.
- identifier: missingType.iterableValue
paths:
- tests/Integration/MySQLRepository.php
- tests/Models/InspectResponseFixture.php
- tests/Unit/ClientMock.php
# ClientMock and fixtures hand mixed values to typed sinks and assertions in tests.
- identifier: argument.type
paths:
- tests/Unit/ClientMock.php
- tests/Unit/FlywayContainerGatedTest.php
- tests/Unit/FlywayDockerContainerTest.php
- tests/Unit/GenericDockerContainerTest.php
- tests/Unit/MySQLDockerContainerTest.php
# ClientMock destructures the untyped response tuple it answers a command with.
- identifier: offsetAccess.nonArray
path: tests/Unit/ClientMock.php
# ClientMock queues untyped response tuples under the command each one answers.
- identifier: offsetAccess.nonOffsetAccessible
path: tests/Unit/ClientMock.php
# ClientMock casts a mixed recorded value to string when building command output.
- identifier: cast.string
path: tests/Unit/ClientMock.php
# Tests index into the untyped argument lists the ClientMock records.
- identifier: offsetAccess.nonOffsetAccessible
paths:
- tests/Unit/FlywayDockerContainerTest.php
- tests/Unit/GenericDockerContainerTest.php
# The shutdown spy records callbacks in an untyped global the test then invokes.
- identifier: callable.nonCallable
path: tests/Unit/GenericDockerContainerTest.php
# Immutability tests discard the copy a with* method returns, to show the receiver is untouched.
- identifier: method.resultUnused
paths:
- tests/Unit/FlywayDockerContainerTest.php
- tests/Unit/MySQLDockerContainerTest.php
# MySQLRepository reads a mixed PDO result as an object at the system boundary.
- identifier: method.nonObject
path: tests/Integration/MySQLRepository.php
# Mock-verified and no-exception tests assert a literal true to satisfy the assertion count.
- identifier: staticMethod.alreadyNarrowedType
paths:
- tests/Unit/GenericDockerContainerTest.php
- tests/Unit/Waits/ContainerWaitForDependencyTest.php
reportUnmatchedIgnoredErrors: true