Skip to content

Commit

Permalink
Fix ParameterBag stub for Symfony 4 (#150)
Browse files Browse the repository at this point in the history
fixes #147
  • Loading branch information
mitelg committed Feb 24, 2021
1 parent d2a699a commit 2d164b8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions src/Stubs/4/ParameterBag.stubphp
@@ -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.
2 changes: 1 addition & 1 deletion tests/acceptance/acceptance/Tainting.feature
@@ -1,4 +1,4 @@
@symfony-common
@symfony-5
Feature: Tainting

Background:
Expand Down

0 comments on commit 2d164b8

Please sign in to comment.