Skip to content

Commit 360817d

Browse files
Fix
1 parent f865833 commit 360817d

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,6 @@ parameters:
103103
# Allow extra assertions in tests: https://github.com/phpstan/phpstan-strict-rules/issues/130
104104
- '#^Call to (static )?method PHPUnit\\Framework\\Assert::.* will always evaluate to true\.$#'
105105

106-
# Unsealed array shapes not supported
107-
-
108-
message: '#^Parameter &\$context by\-ref type of method ApiPlatform\\Doctrine\\Odm\\Extension\\ParameterExtension\:\:applyFilter\(\) expects array\<string, mixed\>, array(.*) given\.$#'
109-
identifier: parameterByRef.type
110-
count: 5
111-
path: src/Doctrine/Odm/Extension/ParameterExtension.php
112-
113106
# Level 6
114107
-
115108
identifier: missingType.iterableValue

src/Doctrine/Odm/Filter/AbstractFilter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public function apply(Builder $aggregationBuilder, string $resourceClass, ?Opera
5959

6060
/**
6161
* Passes a property through the filter.
62+
*
63+
* @param array<string, mixed> $context
64+
*
65+
* @param-out array<string, mixed> $context
6266
*/
6367
abstract protected function filterProperty(string $property, mixed $value, Builder $aggregationBuilder, string $resourceClass, ?Operation $operation = null, array &$context = []): void;
6468

src/Doctrine/Odm/Filter/FilterInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ interface FilterInterface extends BaseFilterInterface
3131
* @phpstan-param array<string, mixed> $context
3232
*
3333
* @psalm-param array{filters?: array<string, mixed>, parameter?: Parameter, mongodb_odm_sort_fields?: array<mixed>, ...} $context
34+
*
35+
* @param-out array<string, mixed> $context
3436
*/
3537
public function apply(Builder $aggregationBuilder, string $resourceClass, ?Operation $operation = null, array &$context = []): void;
3638
}

0 commit comments

Comments
 (0)