Skip to content

Commit 79649c3

Browse files
authored
Fixed issues uncovered by PHPStan v2.1.23 (#649)
For more details see #649 Key changes: * [BinaryFile Field Type] Removed redundant override of the * [Media Field Type] Removed redundant override of the * [Cache] Improved PersistenceLogger code quality * [ConfigResolver] Removed redundant check if the `function` key exists * [ViewProviders] Fixed the incorrect type hint of `Registry::$viewProviders` * [ImageConverter] Handled possible null reference when parsing legacy XML * [Tests] Added coverage for improved parts of PersistenceLogger * [Tests] Fixed type hints in RelationSearchBaseIntegrationTestTrait * [Tests] Fixed return type hints in UI Translation VOs tests * [Country Field Type] Improved data integrity checking when converting to/from storage values * [PHPStan] Removed resolved issues from the baseline * [PHPStan] Regenerated baseline for PHP >= 8.0
1 parent 284c70c commit 79649c3

File tree

14 files changed

+247
-459
lines changed

14 files changed

+247
-459
lines changed

phpstan-baseline-7.4.neon

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,6 @@ parameters:
66
count: 1
77
path: src/bundle/Core/ApiLoader/StorageConnectionFactory.php
88

9-
-
10-
message: '#^Parameter \#1 \$input of function array_filter expects array, iterable\<int, Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\> given\.$#'
11-
identifier: argument.type
12-
count: 1
13-
path: src/bundle/Core/Command/CleanupVersionsCommand.php
14-
15-
-
16-
message: '#^Parameter \#1 \$input of function array_slice expects array, iterable\<int, Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\> given\.$#'
17-
identifier: argument.type
18-
count: 1
19-
path: src/bundle/Core/Command/CleanupVersionsCommand.php
20-
21-
-
22-
message: '#^Parameter \#1 \$var of function count expects array\|Countable, iterable\<int, Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\> given\.$#'
23-
identifier: argument.type
24-
count: 1
25-
path: src/bundle/Core/Command/CleanupVersionsCommand.php
26-
279
-
2810
message: '#^Parameter \#2 \$str of function fwrite expects string, string\|false given\.$#'
2911
identifier: argument.type
@@ -198,12 +180,6 @@ parameters:
198180
count: 1
199181
path: src/lib/MVC/Symfony/Component/Serializer/AbstractPropertyWhitelistNormalizer.php
200182

201-
-
202-
message: '#^Parameter \#1 \$input of function array_keys expects array, iterable\<int, Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\ContentInfo\> given\.$#'
203-
identifier: argument.type
204-
count: 1
205-
path: src/lib/MVC/Symfony/FieldType/RelationList/ParameterProvider.php
206-
207183
-
208184
message: '#^Parameter \#1 \$arr1 of function array_merge expects array, iterable\<Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias\> given\.$#'
209185
identifier: argument.type
@@ -246,18 +222,6 @@ parameters:
246222
count: 1
247223
path: src/lib/Persistence/Cache/UrlWildcardHandler.php
248224

249-
-
250-
message: '#^Parameter \#2 \$pieces of function implode expects array, array\|bool\|float\|int\|string given\.$#'
251-
identifier: argument.type
252-
count: 1
253-
path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/CountryConverter.php
254-
255-
-
256-
message: '#^Parameter \#2 \$pieces of function implode expects array, array\|float\|int\<min, \-1\>\|int\<1, max\>\|string\|true given\.$#'
257-
identifier: argument.type
258-
count: 1
259-
path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/CountryConverter.php
260-
261225
-
262226
message: '#^Cannot access property \$ownerDocument on DOMElement\|false\.$#'
263227
identifier: property.nonObject
@@ -360,12 +324,6 @@ parameters:
360324
count: 1
361325
path: src/lib/Search/Legacy/Content/Location/Gateway/CriterionHandler/Ancestor.php
362326

363-
-
364-
message: '#^Parameter \#1 \$object of method ReflectionProperty\:\:getValue\(\) expects object, object\|null given\.$#'
365-
identifier: argument.type
366-
count: 1
367-
path: tests/bundle/Core/DependencyInjection/Compiler/SlugConverterConfigurationPassTest.php
368-
369327
-
370328
message: '#^Parameter \#1 \$var of function count expects array\|Countable, array\|bool\|float\|int\|string\|null given\.$#'
371329
identifier: argument.type
@@ -414,24 +372,6 @@ parameters:
414372
count: 1
415373
path: tests/integration/Core/Repository/BaseTest.php
416374

417-
-
418-
message: '#^Parameter \#1 \$var of function count expects array\|Countable, iterable\<int, Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Relation\> given\.$#'
419-
identifier: argument.type
420-
count: 4
421-
path: tests/integration/Core/Repository/ContentServiceAuthorizationTest.php
422-
423-
-
424-
message: '#^Parameter \#1 \$array_arg of function usort expects TArray of array, iterable\<int, Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Relation\> given\.$#'
425-
identifier: argument.type
426-
count: 2
427-
path: tests/integration/Core/Repository/ContentServiceTest.php
428-
429-
-
430-
message: '#^Parameter \#1 \$input of function array_keys expects array, iterable\<int, Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\ContentInfo\> given\.$#'
431-
identifier: argument.type
432-
count: 1
433-
path: tests/integration/Core/Repository/ContentServiceTest.php
434-
435375
-
436376
message: '#^Parameter \#1 \$input of function array_values expects array\<T\>, iterable\<Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\> given\.$#'
437377
identifier: argument.type
@@ -450,18 +390,6 @@ parameters:
450390
count: 1
451391
path: tests/integration/Core/Repository/ContentServiceTest.php
452392

453-
-
454-
message: '#^Parameter \#1 \$var of function count expects array\|Countable, iterable\<int, Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Relation\> given\.$#'
455-
identifier: argument.type
456-
count: 1
457-
path: tests/integration/Core/Repository/ContentServiceTest.php
458-
459-
-
460-
message: '#^Parameter \#1 \$var of function count expects array\|Countable, iterable\<int, Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\> given\.$#'
461-
identifier: argument.type
462-
count: 2
463-
path: tests/integration/Core/Repository/ContentServiceTest.php
464-
465393
-
466394
message: '#^Parameter \#1 \$var of function count expects array\|Countable, iterable\<Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentType\> given\.$#'
467395
identifier: argument.type

0 commit comments

Comments
 (0)