Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ParameterBag stub for Symfony 4 (#150)
fixes #147
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\HttpFoundation; | ||
|
||
class ParameterBag implements \IteratorAggregate, \Countable | ||
{ | ||
/** | ||
* Returns a parameter by name. | ||
* | ||
* @param string $key The key | ||
* @param mixed $default The default value if the parameter key does not exist | ||
* | ||
* @return mixed | ||
* @psalm-taint-source input | ||
*/ | ||
public function get(string $key, $default = null) {} | ||
|
||
/** | ||
* Returns the parameters. | ||
* | ||
* @return array An array of parameters | ||
*/ | ||
public function all() {} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@symfony-common | ||
@symfony-5 | ||
Feature: Tainting | ||
|
||
Background: | ||
|