Skip to content

Commit 107d0f5

Browse files
[7.0] Fix various @psalm-return annotations
1 parent 800267d commit 107d0f5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

ParameterBag/ContainerBagInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ public function all(): array;
3333
*
3434
* @param TValue $value
3535
*
36-
* @return mixed
37-
*
3836
* @psalm-return (TValue is scalar ? array|scalar : array<array|scalar>)
3937
*
4038
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
4139
*/
42-
public function resolveValue(mixed $value);
40+
public function resolveValue(mixed $value): mixed;
4341

4442
/**
4543
* Escape parameter placeholders %.

ParameterBag/ParameterBagInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,9 @@ public function resolve();
8282
/**
8383
* Replaces parameter placeholders (%name%) by their values.
8484
*
85-
* @return mixed
86-
*
8785
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
8886
*/
89-
public function resolveValue(mixed $value);
87+
public function resolveValue(mixed $value): mixed;
9088

9189
/**
9290
* Escape parameter placeholders %.

0 commit comments

Comments
 (0)