File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ interface ExtensionInterface
23
23
/**
24
24
* Loads a specific configuration.
25
25
*
26
+ * @param array<array<mixed>> $configs
27
+ *
26
28
* @throws \InvalidArgumentException When provided tag is not defined in this extension
27
29
*/
28
30
public function load (array $ configs , ContainerBuilder $ container );
Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ public function all(): array;
29
29
/**
30
30
* Replaces parameter placeholders (%name%) by their values.
31
31
*
32
+ * @template TValue of array<array|scalar>|scalar
33
+ *
34
+ * @param TValue $value
35
+ *
36
+ * @psalm-return (TValue is scalar ? array|scalar : array<array|scalar>)
37
+ *
32
38
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
33
39
*/
34
40
public function resolveValue (mixed $ value );
Original file line number Diff line number Diff line change @@ -148,7 +148,12 @@ public function resolve()
148
148
/**
149
149
* Replaces parameter placeholders (%name%) by their values.
150
150
*
151
- * @param array $resolving An array of keys that are being resolved (used internally to detect circular references)
151
+ * @template TValue of array<array|scalar>|scalar
152
+ *
153
+ * @param TValue $value
154
+ * @param array $resolving An array of keys that are being resolved (used internally to detect circular references)
155
+ *
156
+ * @return (TValue is scalar ? array|scalar : array<array|scalar>)
152
157
*
153
158
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
154
159
* @throws ParameterCircularReferenceException if a circular reference if detected
You can’t perform that action at this time.
0 commit comments