Skip to content

Commit

Permalink
[PHPStan] Aligned baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
vidarl committed Sep 27, 2024
1 parent 916c9a3 commit e784f1b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion phpstan-baseline-7.4.neon
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ parameters:
path: tests/integration/Core/Repository/ContentServiceTest.php

-
message: "#^Parameter \\#1 \\$input of function array_values expects array, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location\\> given\\.$#"
message: "#^Parameter \\#1 \\$input of function array_values expects array\\<T\\>, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location\\> given\\.$#"
count: 1
path: tests/integration/Core/Repository/ContentServiceTest.php

Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline-gte-8.0.neon
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,6 @@ parameters:
count: 1
path: tests/integration/Core/Repository/ContentServiceTest.php

-
message: "#^Parameter \\#1 \\$array of function array_values expects array, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location\\> given\\.$#"
count: 1
path: tests/integration/Core/Repository/ContentServiceTest.php

-
message: "#^Parameter \\#1 \\$array of function usort expects TArray of array, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Relation\\> given\\.$#"
count: 2
Expand Down
15 changes: 13 additions & 2 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2191,7 +2191,7 @@ parameters:
path: src/bundle/Core/EventListener/SessionInitByPostListener.php

-
message: "#^Parameter \\#1 \\$id of method Symfony\\\\Component\\\\HttpFoundation\\\\Session\\\\SessionInterface\\:\\:setId\\(\\) expects string, bool\\|float\\|int\\|string given\\.$#"
message: "#^Parameter \\#1 \\$id of method Symfony\\\\Component\\\\HttpFoundation\\\\Session\\\\SessionInterface\\:\\:setId\\(\\) expects string, bool\\|float\\|int\\|string\\|null given\\.$#"
count: 1
path: src/bundle/Core/EventListener/SessionInitByPostListener.php

Expand Down Expand Up @@ -20057,7 +20057,7 @@ parameters:

-
message: "#^Access to an undefined property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ValueObject\\:\\:\\$contentId\\.$#"
count: 4
count: 2
path: src/lib/Repository/Mapper/ContentDomainMapper.php

-
Expand Down Expand Up @@ -24040,6 +24040,11 @@ parameters:
count: 1
path: tests/bundle/Core/DependencyInjection/Configuration/SiteAccessAware/ConfigurationProcessorTest.php

-
message: "#^Offset 'sa1'\\|'sa2' on array\\{sa1\\: array\\{foo\\: 'bar', hello\\: 'world', an_integer\\: 123, a_bool\\: true\\}, sa2\\: array\\{foo\\: 'bar2', hello\\: 'universe', an_integer\\: 456, a_bool\\: false\\}\\} in isset\\(\\) always exists and is not nullable\\.$#"
count: 1
path: tests/bundle/Core/DependencyInjection/Configuration/SiteAccessAware/ConfigurationProcessorTest.php

-
message: "#^Parameter \\#2 \\$mapper of method Ibexa\\\\Bundle\\\\Core\\\\DependencyInjection\\\\Configuration\\\\SiteAccessAware\\\\ConfigurationProcessor\\:\\:mapConfig\\(\\) expects \\(callable\\(\\)\\: mixed\\)\\|Ibexa\\\\Bundle\\\\Core\\\\DependencyInjection\\\\Configuration\\\\SiteAccessAware\\\\ConfigurationMapperInterface, stdClass given\\.$#"
count: 1
Expand Down Expand Up @@ -28145,6 +28150,11 @@ parameters:
count: 1
path: tests/integration/Core/Repository/ContentServiceTest.php

-
message: "#^Parameter \\#1 \\$array of function array_values expects array\\<T\\>, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location\\> given\\.$#"
count: 1
path: tests/integration/Core/Repository/ContentServiceTest.php

-
message: "#^Parameter \\#1 \\$fields of method Ibexa\\\\Tests\\\\Integration\\\\Core\\\\Repository\\\\ContentServiceTest\\:\\:assertAllFieldsEquals\\(\\) expects array\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Field\\>, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Field\\> given\\.$#"
count: 1
Expand Down Expand Up @@ -62639,3 +62649,4 @@ parameters:
message: "#^Method Ibexa\\\\Tests\\\\Core\\\\Specification\\\\Content\\\\ContentTypeSpecificationTest\\:\\:providerForIsSatisfiedBy\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: tests/lib/Specification/Content/ContentTypeSpecificationTest.php

0 comments on commit e784f1b

Please sign in to comment.