Skip to content

Commit 30d5e73

Browse files
committed
Update PHPStan and Psalm baselines
1 parent 99c1d55 commit 30d5e73

File tree

2 files changed

+231
-25
lines changed

2 files changed

+231
-25
lines changed

phpstan-baseline.neon

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,145 @@
11
parameters:
22
ignoreErrors:
3+
-
4+
message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#"
5+
count: 1
6+
path: src/DependencyInjection/Compiler/DbalTracingPass.php
7+
38
-
49
message: "#^Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\TreeBuilder\\:\\:root\\(\\)\\.$#"
510
count: 1
611
path: src/DependencyInjection/Configuration.php
712

13+
-
14+
message: "#^Cannot access offset 'before_breadcrumb' on mixed\\.$#"
15+
count: 3
16+
path: src/DependencyInjection/SentryExtension.php
17+
18+
-
19+
message: "#^Cannot access offset 'before_send' on mixed\\.$#"
20+
count: 3
21+
path: src/DependencyInjection/SentryExtension.php
22+
23+
-
24+
message: "#^Cannot access offset 'class_serializers' on mixed\\.$#"
25+
count: 3
26+
path: src/DependencyInjection/SentryExtension.php
27+
28+
-
29+
message: "#^Cannot access offset 'connections' on mixed\\.$#"
30+
count: 1
31+
path: src/DependencyInjection/SentryExtension.php
32+
33+
-
34+
message: "#^Cannot access offset 'default_integrations' on mixed\\.$#"
35+
count: 1
36+
path: src/DependencyInjection/SentryExtension.php
37+
38+
-
39+
message: "#^Cannot access offset 'dsn' on mixed\\.$#"
40+
count: 1
41+
path: src/DependencyInjection/SentryExtension.php
42+
43+
-
44+
message: "#^Cannot access offset 'excluded_commands' on mixed\\.$#"
45+
count: 1
46+
path: src/DependencyInjection/SentryExtension.php
47+
48+
-
49+
message: "#^Cannot access offset 'in_app_exclude' on mixed\\.$#"
50+
count: 2
51+
path: src/DependencyInjection/SentryExtension.php
52+
53+
-
54+
message: "#^Cannot access offset 'integrations' on mixed\\.$#"
55+
count: 3
56+
path: src/DependencyInjection/SentryExtension.php
57+
58+
-
59+
message: "#^Cannot access offset 'traces_sampler' on mixed\\.$#"
60+
count: 3
61+
path: src/DependencyInjection/SentryExtension.php
62+
863
-
964
message: "#^Class Symfony\\\\Component\\\\Debug\\\\Exception\\\\FatalErrorException not found\\.$#"
1065
count: 1
1166
path: src/DependencyInjection/SentryExtension.php
1267

68+
-
69+
message: "#^Parameter \\#1 \\$array of function array_filter expects array, mixed given\\.$#"
70+
count: 1
71+
path: src/DependencyInjection/SentryExtension.php
72+
73+
-
74+
message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(mixed\\)\\: mixed\\)\\|null, Closure\\(string\\)\\: Symfony\\\\Component\\\\DependencyInjection\\\\Reference given\\.$#"
75+
count: 1
76+
path: src/DependencyInjection/SentryExtension.php
77+
78+
-
79+
message: "#^Parameter \\#1 \\$id of class Symfony\\\\Component\\\\DependencyInjection\\\\Reference constructor expects string, mixed given\\.$#"
80+
count: 5
81+
path: src/DependencyInjection/SentryExtension.php
82+
83+
-
84+
message: "#^Parameter \\#1 \\$integrations of method Sentry\\\\SentryBundle\\\\DependencyInjection\\\\SentryExtension\\:\\:configureIntegrationsOption\\(\\) expects array\\<string\\>, mixed given\\.$#"
85+
count: 1
86+
path: src/DependencyInjection/SentryExtension.php
87+
88+
-
89+
message: "#^Parameter \\#2 \\$array of function array_map expects array, mixed given\\.$#"
90+
count: 1
91+
path: src/DependencyInjection/SentryExtension.php
92+
93+
-
94+
message: "#^Parameter \\#2 \\$callback of function array_filter expects callable\\(mixed\\)\\: mixed, Closure\\(string\\)\\: bool given\\.$#"
95+
count: 1
96+
path: src/DependencyInjection/SentryExtension.php
97+
98+
-
99+
message: "#^Parameter \\#2 \\$config of method Sentry\\\\SentryBundle\\\\DependencyInjection\\\\SentryExtension\\:\\:registerCacheTracingConfiguration\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#"
100+
count: 1
101+
path: src/DependencyInjection/SentryExtension.php
102+
103+
-
104+
message: "#^Parameter \\#2 \\$config of method Sentry\\\\SentryBundle\\\\DependencyInjection\\\\SentryExtension\\:\\:registerDbalTracingConfiguration\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#"
105+
count: 1
106+
path: src/DependencyInjection/SentryExtension.php
107+
108+
-
109+
message: "#^Parameter \\#2 \\$config of method Sentry\\\\SentryBundle\\\\DependencyInjection\\\\SentryExtension\\:\\:registerMessengerListenerConfiguration\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#"
110+
count: 1
111+
path: src/DependencyInjection/SentryExtension.php
112+
113+
-
114+
message: "#^Parameter \\#2 \\$config of method Sentry\\\\SentryBundle\\\\DependencyInjection\\\\SentryExtension\\:\\:registerTracingConfiguration\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#"
115+
count: 1
116+
path: src/DependencyInjection/SentryExtension.php
117+
118+
-
119+
message: "#^Parameter \\#2 \\$config of method Sentry\\\\SentryBundle\\\\DependencyInjection\\\\SentryExtension\\:\\:registerTwigTracingConfiguration\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#"
120+
count: 1
121+
path: src/DependencyInjection/SentryExtension.php
122+
123+
-
124+
message: "#^Parameter \\#2 \\$config of method Symfony\\\\Component\\\\DependencyInjection\\\\Extension\\\\Extension\\:\\:isConfigEnabled\\(\\) expects array, mixed given\\.$#"
125+
count: 3
126+
path: src/DependencyInjection/SentryExtension.php
127+
128+
-
129+
message: "#^Parameter \\#2 \\$registerErrorListener of method Sentry\\\\SentryBundle\\\\DependencyInjection\\\\SentryExtension\\:\\:configureErrorListenerIntegration\\(\\) expects bool, mixed given\\.$#"
130+
count: 1
131+
path: src/DependencyInjection/SentryExtension.php
132+
133+
-
134+
message: "#^Parameter \\#2 \\$useDefaultIntegrations of method Sentry\\\\SentryBundle\\\\DependencyInjection\\\\SentryExtension\\:\\:configureRequestIntegration\\(\\) expects bool, mixed given\\.$#"
135+
count: 1
136+
path: src/DependencyInjection/SentryExtension.php
137+
138+
-
139+
message: "#^Parameter \\#2 \\$value of method Symfony\\\\Component\\\\DependencyInjection\\\\Container\\:\\:setParameter\\(\\) expects array\\|bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
140+
count: 2
141+
path: src/DependencyInjection/SentryExtension.php
142+
13143
-
14144
message: "#^Call to an undefined method Symfony\\\\Component\\\\HttpKernel\\\\Event\\\\KernelEvent\\:\\:isMasterRequest\\(\\)\\.$#"
15145
count: 1
@@ -30,11 +160,31 @@ parameters:
30160
count: 1
31161
path: src/EventListener/RequestListener.php
32162

163+
-
164+
message: "#^Cannot call method getUser\\(\\) on Symfony\\\\Component\\\\Security\\\\Core\\\\Authentication\\\\Token\\\\TokenInterface\\|null\\.$#"
165+
count: 1
166+
path: src/EventListener/RequestListener.php
167+
168+
-
169+
message: "#^Parameter \\#1 \\$user of method Sentry\\\\SentryBundle\\\\EventListener\\\\RequestListener\\:\\:getUsername\\(\\) expects object\\|string, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#"
170+
count: 1
171+
path: src/EventListener/RequestListener.php
172+
33173
-
34174
message: "#^Call to an undefined method Symfony\\\\Component\\\\HttpKernel\\\\Event\\\\KernelEvent\\:\\:isMasterRequest\\(\\)\\.$#"
35175
count: 1
36176
path: src/EventListener/SubRequestListener.php
37177

178+
-
179+
message: "#^Parameter \\#1 \\$driver of method Sentry\\\\SentryBundle\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingDriverMiddleware\\:\\:wrap\\(\\) expects Doctrine\\\\DBAL\\\\Driver, mixed given\\.$#"
180+
count: 1
181+
path: src/Tracing/Doctrine/DBAL/ConnectionConfigurator.php
182+
183+
-
184+
message: "#^Method Sentry\\\\SentryBundle\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingDriverConnection\\:\\:__construct\\(\\) has parameter \\$params with no value type specified in iterable type array\\<string, mixed\\>\\.$#"
185+
count: 5
186+
path: src/Tracing/Doctrine/DBAL/TracingDriverConnection.php
187+
38188
-
39189
message: "#^Method Sentry\\\\SentryBundle\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingDriverConnection\\:\\:errorInfo\\(\\) return type has no value type specified in iterable type array\\.$#"
40190
count: 1
@@ -45,6 +195,11 @@ parameters:
45195
count: 1
46196
path: src/Tracing/Doctrine/DBAL/TracingDriverConnection.php
47197

198+
-
199+
message: "#^Method Sentry\\\\SentryBundle\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingDriverConnection\\:\\:getSpanTags\\(\\) has parameter \\$params with no value type specified in iterable type array\\<string, mixed\\>\\.$#"
200+
count: 5
201+
path: src/Tracing/Doctrine/DBAL/TracingDriverConnection.php
202+
48203
-
49204
message: "#^Method Sentry\\\\SentryBundle\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingDriverConnection\\:\\:prepare\\(\\) has parameter \\$sql with no type specified\\.$#"
50205
count: 1
@@ -55,6 +210,16 @@ parameters:
55210
count: 1
56211
path: src/Tracing/Doctrine/DBAL/TracingDriverConnection.php
57212

213+
-
214+
message: "#^Offset 'unix_socket' on array\\{charset\\?\\: string, dbname\\?\\: string, default_dbname\\?\\: string, driver\\?\\: mixed, driverClass\\?\\: class\\-string\\<Doctrine\\\\DBAL\\\\Driver\\>, driverOptions\\?\\: array, host\\?\\: string, keepSlave\\?\\: bool, \\.\\.\\.\\} in isset\\(\\) does not exist\\.$#"
215+
count: 1
216+
path: src/Tracing/Doctrine/DBAL/TracingDriverConnection.php
217+
218+
-
219+
message: "#^PHPDoc tag @param for parameter \\$params contains unresolvable type\\.$#"
220+
count: 2
221+
path: src/Tracing/Doctrine/DBAL/TracingDriverConnection.php
222+
58223
-
59224
message: "#^Parameter \\#1 \\$sql of method Doctrine\\\\DBAL\\\\Driver\\\\Connection\\:\\:query\\(\\) expects string, string\\|null given\\.$#"
60225
count: 1
@@ -65,6 +230,26 @@ parameters:
65230
count: 1
66231
path: src/Tracing/Doctrine/DBAL/TracingDriverConnection.php
67232

233+
-
234+
message: "#^Method Sentry\\\\SentryBundle\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingDriverConnectionFactory\\:\\:create\\(\\) has parameter \\$params with no value type specified in iterable type array\\<string, mixed\\>\\.$#"
235+
count: 5
236+
path: src/Tracing/Doctrine/DBAL/TracingDriverConnectionFactory.php
237+
238+
-
239+
message: "#^Method Sentry\\\\SentryBundle\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingDriverConnectionFactoryInterface\\:\\:create\\(\\) has parameter \\$params with no value type specified in iterable type array\\<string, mixed\\>\\.$#"
240+
count: 5
241+
path: src/Tracing/Doctrine/DBAL/TracingDriverConnectionFactoryInterface.php
242+
243+
-
244+
message: "#^PHPDoc tag @param for parameter \\$params contains unresolvable type\\.$#"
245+
count: 1
246+
path: src/Tracing/Doctrine/DBAL/TracingDriverConnectionFactoryInterface.php
247+
248+
-
249+
message: "#^Parameter \\#3 \\$params of method Sentry\\\\SentryBundle\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingDriverConnectionFactoryInterface\\:\\:create\\(\\) expects array\\{charset\\?\\: string, dbname\\?\\: string, default_dbname\\?\\: string, driver\\?\\: mixed, driverClass\\?\\: class\\-string\\<Doctrine\\\\DBAL\\\\Driver\\>, driverOptions\\?\\: array, host\\?\\: string, keepSlave\\?\\: bool, \\.\\.\\.\\}, array given\\.$#"
250+
count: 1
251+
path: src/Tracing/Doctrine/DBAL/TracingDriverForV3.php
252+
68253
-
69254
message: "#^Method Sentry\\\\SentryBundle\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingServerInfoAwareDriverConnection\\:\\:errorInfo\\(\\) return type has no value type specified in iterable type array\\.$#"
70255
count: 1
@@ -90,6 +275,36 @@ parameters:
90275
count: 1
91276
path: src/Tracing/Doctrine/DBAL/TracingServerInfoAwareDriverConnection.php
92277

278+
-
279+
message: "#^Cannot access offset 'sample_rate' on mixed\\.$#"
280+
count: 1
281+
path: tests/DependencyInjection/ConfigurationTest.php
282+
283+
-
284+
message: "#^Cannot access offset 'traces_sample_rate' on mixed\\.$#"
285+
count: 1
286+
path: tests/DependencyInjection/ConfigurationTest.php
287+
288+
-
289+
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
290+
count: 1
291+
path: tests/DependencyInjection/SentryExtensionTest.php
292+
293+
-
294+
message: "#^Cannot access offset 'dsn' on mixed\\.$#"
295+
count: 1
296+
path: tests/DependencyInjection/SentryExtensionTest.php
297+
298+
-
299+
message: "#^Cannot access offset 'error_types' on mixed\\.$#"
300+
count: 1
301+
path: tests/DependencyInjection/SentryExtensionTest.php
302+
303+
-
304+
message: "#^Cannot access offset 'integrations' on mixed\\.$#"
305+
count: 1
306+
path: tests/DependencyInjection/SentryExtensionTest.php
307+
93308
-
94309
message: "#^Class Symfony\\\\Component\\\\Debug\\\\Exception\\\\FatalErrorException not found\\.$#"
95310
count: 1
@@ -230,6 +445,21 @@ parameters:
230445
count: 1
231446
path: tests/Tracing/Cache/AbstractTraceableCacheAdapterTest.php
232447

448+
-
449+
message: "#^Method Sentry\\\\SentryBundle\\\\Tests\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingDriverConnectionTest\\:\\:testQuery\\(\\) has parameter \\$params with no value type specified in iterable type array\\<string, mixed\\>\\.$#"
450+
count: 5
451+
path: tests/Tracing/Doctrine/DBAL/TracingDriverConnectionTest.php
452+
453+
-
454+
message: "#^PHPDoc tag @param for parameter \\$params contains unresolvable type\\.$#"
455+
count: 1
456+
path: tests/Tracing/Doctrine/DBAL/TracingDriverConnectionTest.php
457+
458+
-
459+
message: "#^Parameter \\#4 \\$params of class Sentry\\\\SentryBundle\\\\Tracing\\\\Doctrine\\\\DBAL\\\\TracingDriverConnection constructor expects array\\{charset\\?\\: string, dbname\\?\\: string, default_dbname\\?\\: string, driver\\?\\: mixed, driverClass\\?\\: class\\-string\\<Doctrine\\\\DBAL\\\\Driver\\>, driverOptions\\?\\: array, host\\?\\: string, keepSlave\\?\\: bool, \\.\\.\\.\\}, array\\<string, mixed\\> given\\.$#"
460+
count: 5
461+
path: tests/Tracing/Doctrine/DBAL/TracingDriverConnectionTest.php
462+
233463
-
234464
message: "#^Trying to mock an undefined method errorCode\\(\\) on class Doctrine\\\\DBAL\\\\Driver\\\\Connection\\.$#"
235465
count: 1

psalm-baseline.xml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="4.13.1@5cf660f63b548ccd4a56f62d916ee4d6028e01a3">
2+
<files psalm-version="v4.15.0@a1b5e489e6fcebe40cb804793d964e99fc347820">
33
<file src="src/DependencyInjection/SentryExtension.php">
44
<UndefinedClass occurrences="1">
55
<code>FatalErrorException</code>
@@ -44,30 +44,6 @@
4444
<code>AbstractSchemaManager&lt;T&gt;</code>
4545
</InvalidReturnType>
4646
</file>
47-
<file src="src/Tracing/Doctrine/DBAL/TracingStatementForV2.php">
48-
<InvalidReturnStatement occurrences="2">
49-
<code>$this-&gt;decoratedStatement</code>
50-
<code>$this-&gt;traceFunction($spanContext, [$this-&gt;decoratedStatement, 'execute'], $params)</code>
51-
</InvalidReturnStatement>
52-
<InvalidReturnType occurrences="2">
53-
<code>\Traversable</code>
54-
<code>bool</code>
55-
</InvalidReturnType>
56-
<MethodSignatureMismatch occurrences="1">
57-
<code>TracingStatementForV2</code>
58-
</MethodSignatureMismatch>
59-
<UndefinedInterfaceMethod occurrences="9">
60-
<code>closeCursor</code>
61-
<code>columnCount</code>
62-
<code>errorCode</code>
63-
<code>errorInfo</code>
64-
<code>fetch</code>
65-
<code>fetchAll</code>
66-
<code>fetchColumn</code>
67-
<code>rowCount</code>
68-
<code>setFetchMode</code>
69-
</UndefinedInterfaceMethod>
70-
</file>
7147
<file src="src/aliases.php">
7248
<MissingDependency occurrences="1">
7349
<code>TracingDriverForV2</code>

0 commit comments

Comments
 (0)