Fix ParameterBag stub for Symfony 4 (#150)

fixes #147
This commit is contained in:
Michael Telgmann 2021-02-24 18:39:20 +01:00 committed by GitHub
parent d2a699aa25
commit 2d164b8fda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 1 deletions

View File

@ -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() {}
}

View File

@ -1,4 +1,4 @@
@symfony-common
@symfony-5
Feature: Tainting
Background: