Skip to content

Commit

Permalink
[PHPStan] Updated baseline after PHPStan release (#465)
Browse files Browse the repository at this point in the history
[PHPStan] Updated baseline after PHPStan update
  • Loading branch information
alongosz authored Dec 19, 2024
1 parent 46ec5e9 commit 806270b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline-7.4.neon
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ parameters:
count: 1
path: src/bundle/Core/Command/ResizeOriginalImagesCommand.php

-
message: "#^Parameter \\#2 \\$parameters of function call_user_func_array expects array\\<int, mixed\\>, array\\<int\\|string, array\\<int, Symfony\\\\Component\\\\DependencyInjection\\\\Reference\\>\\> given\\.$#"
count: 1
path: src/bundle/Core/DependencyInjection/Compiler/ConsoleCacheWarmupPass.php

-
message: "#^Method Ibexa\\\\Bundle\\\\Core\\\\DependencyInjection\\\\Compiler\\\\InjectEntityManagerMappingsPass\\:\\:getEntityMapForConfigurationService\\(\\) should return array but returns array\\|false\\.$#"
count: 1
Expand Down
23 changes: 4 additions & 19 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16880,11 +16880,6 @@ parameters:
count: 1
path: src/lib/Persistence/Legacy/Content/ObjectState/Handler.php

-
message: "#^Parameter \\#1 \\$stateId of method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\ObjectState\\\\Gateway\\:\\:updateObjectStatePriority\\(\\) expects int, int\\|string given\\.$#"
count: 1
path: src/lib/Persistence/Legacy/Content/ObjectState/Handler.php

-
message: "#^Cannot access offset int on iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Language\\>\\.$#"
count: 4
Expand Down Expand Up @@ -17481,7 +17476,7 @@ parameters:
path: src/lib/Persistence/Legacy/Content/Type/MemoryCachingHandler.php

-
message: "#^Method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\Type\\\\MemoryCachingHandler\\:\\:loadContentTypeList\\(\\) should return array\\<Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Type\\> but returns array\\<int\\|string, object\\>\\.$#"
message: "#^Method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\Type\\\\MemoryCachingHandler\\:\\:loadContentTypeList\\(\\) should return array\\<Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Type\\> but returns array\\<object\\>\\.$#"
count: 1
path: src/lib/Persistence/Legacy/Content/Type/MemoryCachingHandler.php

Expand Down Expand Up @@ -17511,7 +17506,7 @@ parameters:
path: src/lib/Persistence/Legacy/Content/Type/MemoryCachingHandler.php

-
message: "#^Method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\Type\\\\MemoryCachingHandler\\:\\:loadGroups\\(\\) should return array\\<Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Type\\\\Group\\> but returns array\\<int\\|string, object\\>\\.$#"
message: "#^Method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\Type\\\\MemoryCachingHandler\\:\\:loadGroups\\(\\) should return array\\<Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Type\\\\Group\\> but returns array\\<object\\>\\.$#"
count: 1
path: src/lib/Persistence/Legacy/Content/Type/MemoryCachingHandler.php

Expand Down Expand Up @@ -18946,7 +18941,7 @@ parameters:
path: src/lib/Persistence/Legacy/User/Handler.php

-
message: "#^Cannot access offset mixed on non\\-empty\\-array\\<int\\|string, mixed\\>\\|Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\User\\\\RoleAssignment\\.$#"
message: "#^Cannot access offset mixed on non\\-empty\\-array\\|Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\User\\\\RoleAssignment\\.$#"
count: 1
path: src/lib/Persistence/Legacy/User/Mapper.php

Expand Down Expand Up @@ -20596,7 +20591,7 @@ parameters:
path: src/lib/Repository/RoleService.php

-
message: "#^Method Ibexa\\\\Core\\\\Repository\\\\RoleService\\:\\:validateRoleCreateStruct\\(\\) should return iterable\\<array\\<array\\<Ibexa\\\\Core\\\\FieldType\\\\ValidationError\\>\\>\\> but returns array\\<int\\|string, iterable\\<array\\<Ibexa\\\\Core\\\\FieldType\\\\ValidationError\\>\\>\\>\\.$#"
message: "#^Method Ibexa\\\\Core\\\\Repository\\\\RoleService\\:\\:validateRoleCreateStruct\\(\\) should return iterable\\<array\\<array\\<Ibexa\\\\Core\\\\FieldType\\\\ValidationError\\>\\>\\> but returns array\\<iterable\\<array\\<Ibexa\\\\Core\\\\FieldType\\\\ValidationError\\>\\>\\>\\.$#"
count: 1
path: src/lib/Repository/RoleService.php

Expand Down Expand Up @@ -21210,11 +21205,6 @@ parameters:
count: 1
path: src/lib/Repository/Values/Content/Content.php

-
message: "#^Property Ibexa\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Content\\:\\:\\$fieldDefinitionTranslationMap \\(array\\<string, array\\<string, eZ\\\\Publish\\\\API\\\\Repository\\\\Values\\\\Content\\\\Field\\>\\>\\) does not accept array\\<int\\|string, array\\<int\\|string, mixed\\>\\>\\.$#"
count: 1
path: src/lib/Repository/Values/Content/Content.php

-
message: "#^Property Ibexa\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Content\\:\\:\\$fieldDefinitionTranslationMap has unknown class eZ\\\\Publish\\\\API\\\\Repository\\\\Values\\\\Content\\\\Field as its type\\.$#"
count: 1
Expand Down Expand Up @@ -54640,11 +54630,6 @@ parameters:
count: 1
path: tests/lib/Persistence/Legacy/Content/UrlAlias/UrlAliasHandlerTest.php

-
message: "#^Parameter \\#1 \\$url of method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\UrlAlias\\\\Handler\\:\\:lookup\\(\\) expects string, int\\|string given\\.$#"
count: 1
path: tests/lib/Persistence/Legacy/Content/UrlAlias/UrlAliasHandlerTest.php

-
message: "#^Parameter \\#3 \\$ruleFiles of class Ibexa\\\\Core\\\\Persistence\\\\TransformationProcessor\\\\DefinitionBased constructor expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
Expand Down

0 comments on commit 806270b

Please sign in to comment.