1 | <?php |
||
10 | class ValidatorAnnotationParser implements AnnotationParser |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | * In this method, annotation param is treated as instance of AnnotationWithAssociatedClass. |
||
15 | * |
||
16 | * @see \Mcustiel\SimpleRequest\Strategies\Annotations\AnnotationParser::execute() |
||
17 | */ |
||
18 | public function execute(RequestAnnotation $annotation, PropertyParserBuilder $propertyParser) |
||
27 | } |
||
28 |
This check looks at variables that 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.