These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the API Platform project. |
||
5 | * |
||
6 | * (c) Kévin Dunglas <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | declare(strict_types=1); |
||
13 | |||
14 | namespace ApiPlatform\Core\Api; |
||
15 | |||
16 | use Psr\Container\ContainerInterface; |
||
17 | |||
18 | /** |
||
19 | * A list of filters. |
||
20 | * |
||
21 | * @author Kévin Dunglas <[email protected]> |
||
22 | * |
||
23 | * @deprecated since version 2.1, to be removed in 3.0. Use a service locator {@see \Psr\Container\ContainerInterface}. |
||
24 | */ |
||
25 | final class FilterCollection extends \ArrayObject |
||
26 | { |
||
27 | public function __construct($input = [], $flags = 0, $iterator_class = 'ArrayIterator') |
||
28 | { |
||
29 | @trigger_error(sprintf('The %s class is deprecated since version 2.1 and will be removed in 3.0. Provide an implementation of %s instead.', self::class, ContainerInterface::class), E_USER_DEPRECATED); |
||
1 ignored issue
–
show
|
|||
30 | |||
31 | parent::__construct($input, $flags, $iterator_class); |
||
32 | } |
||
33 | } |
||
34 |
If you suppress an error, we recommend checking for the error condition explicitly: