Skip to content

Commit e7efeab

Browse files
committed
Regenerated PHPStan baseline for PHP 8.0 / 8.1
1 parent 1d35701 commit e7efeab

File tree

6 files changed

+47
-108
lines changed

6 files changed

+47
-108
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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

phpstan-baseline.neon.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
$includes[] = __DIR__ . '/phpstan-baseline-gte-8.0.neon';
1414
}
1515

16+
if (PHP_VERSION_ID >= 80100) {
17+
$includes[] = __DIR__ . '/phpstan-baseline-gte-8.1.neon';
18+
}
19+
1620
if (PHP_VERSION_ID < 80200) {
1721
$includes[] = __DIR__ . '/phpstan-baseline-lte-8.1.neon';
1822
}
@@ -23,18 +27,6 @@
2327
$includes[] = __DIR__ . '/phpstan-baseline-lte-8.2.neon';
2428
}
2529

26-
if (PHP_VERSION_ID >= 80000 && PHP_VERSION_ID < 80100) {
27-
$includes[] = __DIR__ . '/phpstan-baseline-8.0.neon';
28-
}
29-
30-
if (PHP_VERSION_ID >= 80100 && PHP_VERSION_ID < 80200) {
31-
$includes[] = __DIR__ . '/phpstan-baseline-8.1.neon';
32-
}
33-
34-
if (PHP_VERSION_ID >= 80200 && PHP_VERSION_ID < 80300) {
35-
$includes[] = __DIR__ . '/phpstan-baseline-8.2.neon';
36-
}
37-
3830
$config = [];
3931
$config['includes'] = $includes;
4032

0 commit comments

Comments
 (0)