mirror of
https://github.com/danog/psalm-plugin-symfony.git
synced 2024-11-30 04:29:10 +01:00
parent
d2a699aa25
commit
2d164b8fda
24
src/Stubs/4/ParameterBag.stubphp
Normal file
24
src/Stubs/4/ParameterBag.stubphp
Normal 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() {}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
@symfony-common
|
||||
@symfony-5
|
||||
Feature: Tainting
|
||||
|
||||
Background:
|
||||
|
Loading…
Reference in New Issue
Block a user