Skip to content

Commit 2a440c3

Browse files
authored
[PHPStan] Regenerated PHPStan baseline (#658)
1 parent fca1340 commit 2a440c3

File tree

10 files changed

+101
-273
lines changed

10 files changed

+101
-273
lines changed

phpstan-baseline-8.0.neon

Lines changed: 0 additions & 32 deletions
This file was deleted.

phpstan-baseline-8.1.neon

Lines changed: 0 additions & 32 deletions
This file was deleted.

phpstan-baseline-8.2.neon

Lines changed: 0 additions & 32 deletions
This file was deleted.

phpstan-baseline-gte-8.0.neon

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ parameters:
6161
path: src/bundle/Core/Imagine/IORepositoryResolver.php
6262

6363
-
64-
message: '#^Method Ibexa\\Bundle\\Core\\URLChecker\\Handler\\HTTPHandler\:\:createCurlHandlerForUrl\(\) should return resource but returns \(CurlHandle\|false\)\.$#'
64+
message: '#^Method Ibexa\\Bundle\\Core\\URLChecker\\Handler\\HTTPHandler\:\:createCurlHandlerForUrl\(\) should return resource but returns CurlHandle\.$#'
6565
identifier: return.type
6666
count: 1
6767
path: src/bundle/Core/URLChecker/Handler/HTTPHandler.php
@@ -114,6 +114,12 @@ parameters:
114114
count: 1
115115
path: src/bundle/LegacySearchEngine/ApiLoader/ConnectionFactory.php
116116

117+
-
118+
message: '#^Parameter \#1 \$array of function array_filter expects array, list\<string\>\|false given\.$#'
119+
identifier: argument.type
120+
count: 1
121+
path: src/bundle/RepositoryInstaller/Installer/DbBasedInstaller.php
122+
117123
-
118124
message: '#^Parameter \#1 \$object_or_class of function is_a expects object\|string, string\|null given\.$#'
119125
identifier: argument.type
@@ -174,6 +180,12 @@ parameters:
174180
count: 1
175181
path: src/lib/Limitation/LanguageLimitationType.php
176182

183+
-
184+
message: '#^Parameter \#1 \$array of function array_keys expects array, array\<mixed\>\|ArrayObject\<\(int\|string\), mixed\>\|bool\|float\|int\|string\|null given\.$#'
185+
identifier: argument.type
186+
count: 1
187+
path: src/lib/MVC/Symfony/Component/Serializer/AbstractPropertyWhitelistNormalizer.php
188+
177189
-
178190
message: '#^Parameter \#1 \.\.\.\$arrays of function array_merge expects array, iterable\<Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias\> given\.$#'
179191
identifier: argument.type
@@ -186,6 +198,12 @@ parameters:
186198
count: 1
187199
path: src/lib/MVC/Symfony/Matcher/ContentBased/UrlAlias.php
188200

201+
-
202+
message: '#^Parameter \#1 \$array of class Ibexa\\Core\\FieldType\\FieldSettings constructor expects array\<mixed\>\|object, array\|null given\.$#'
203+
identifier: argument.type
204+
count: 1
205+
path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/SerializableConverter.php
206+
189207
-
190208
message: '#^Parameter \#1 \$array of function array_keys expects array, iterable\<Ibexa\\Contracts\\Core\\Persistence\\Content\\Language\> given\.$#'
191209
identifier: argument.type
@@ -234,6 +252,12 @@ parameters:
234252
count: 1
235253
path: src/lib/Repository/ProxyFactory/ProxyGenerator.php
236254

255+
-
256+
message: '#^Parameter \#2 \.\.\.\$arrays of function array_diff expects array, array\<mixed\>\|null given\.$#'
257+
identifier: argument.type
258+
count: 1
259+
path: src/lib/Repository/RoleService.php
260+
237261
-
238262
message: '#^Parameter \#1 \$value of function count expects array\|Countable, iterable\<Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\> given\.$#'
239263
identifier: argument.type
@@ -354,6 +378,12 @@ parameters:
354378
count: 3
355379
path: tests/integration/Core/Repository/LocationServiceTest.php
356380

381+
-
382+
message: '#^Parameter \#1 \$array of function sort contains unresolvable type\.$#'
383+
identifier: argument.unresolvableType
384+
count: 1
385+
path: tests/integration/Core/Repository/LocationServiceTest.php
386+
357387
-
358388
message: '#^Parameter \#1 \$array of function array_filter expects array, iterable\<Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Policy\> given\.$#'
359389
identifier: argument.type

phpstan-baseline-gte-8.1.neon

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Possibly invalid array key type bool\|float\|int\|string\.$#'
5+
identifier: offsetAccess.invalidOffset
6+
count: 3
7+
path: src/lib/Persistence/Legacy/Content/Mapper.php
8+
9+
-
10+
message: '#^Possibly invalid array key type bool\|float\|int\|string\.$#'
11+
identifier: offsetAccess.invalidOffset
12+
count: 2
13+
path: tests/integration/Core/Repository/SearchService/RemoteIdIndexingTest.php

0 commit comments

Comments
 (0)