1 | <?php |
||
8 | final class SymfonyNormalizerAdapter implements NormalizerInterface |
||
9 | { |
||
10 | /** @var SymfonyNormalizerInterface */ |
||
11 | private $normalizer; |
||
12 | |||
13 | /** |
||
14 | * SymfonyNormalizerAdapter constructor. |
||
15 | * |
||
16 | * @param SymfonyNormalizerInterface $normalizer |
||
17 | */ |
||
18 | public function __construct(SymfonyNormalizerInterface $normalizer) |
||
22 | |||
23 | /** {@inheritdoc} */ |
||
24 | public function normalize($entity, array $context = []) |
||
32 | } |
||
33 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.