File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
tests/acceptance/acceptance Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,18 @@ final class InputBag extends ParameterBag
10
10
* @template D of string|null
11
11
* @psalm-param D $default
12
12
* @psalm-return string|D
13
+ * @psalm-taint-source input
13
14
*/
14
15
public function get(string $key, $default = null) {}
16
+
17
+ /**
18
+ * Returns the parameters.
19
+ *
20
+ * @param string|null $key The name of the parameter to return or null to get them all
21
+ *
22
+ * @return array An array of parameters
23
+ *
24
+ * @psalm-taint-source input
25
+ */
26
+ public function all(string $key = null) {}
15
27
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Symfony\Component\HttpFoundation;
4
4
5
- final class InputBag extends ParameterBag
5
+ class ParameterBag implements \IteratorAggregate, \Countable
6
6
{
7
7
/**
8
- * Returns a string input value by name.
8
+ * Returns a parameter by name.
9
9
*
10
- * @param string|null $default The default value if the input key does not exist
11
- *
12
- * @return string|null
10
+ * @param string $key The key
11
+ * @param mixed $default The default value if the parameter key does not exist
13
12
*
13
+ * @return mixed
14
14
* @psalm-taint-source input
15
15
*/
16
16
public function get(string $key, $default = null) {}
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ Feature: Tainting
24
24
"""
25
25
26
26
Scenario Outline : One parameter of the Request's request/query/cookies is printed in the body of a Response object
27
- Given I have the "symfony/framework-bundle" package satisfying the "^5.1"
28
27
And I have the following code
29
28
"""
30
29
class MyController
@@ -48,7 +47,6 @@ Feature: Tainting
48
47
| ->cookies |
49
48
50
49
Scenario Outline : All parameters of the Request's request/query/cookies are exported in the body of a Response object
51
- Given I have the "symfony/framework-bundle" package satisfying the "^5.1"
52
50
And I have the following code
53
51
"""
54
52
class MyController
You can’t perform that action at this time.
0 commit comments