1 | <?php |
||
22 | class NullValueBuilder extends BaseBuilder |
||
23 | { |
||
24 | /** |
||
25 | * @param RuleInterface $rule |
||
26 | * @return bool |
||
27 | */ |
||
28 | public function match(RuleInterface $rule): bool |
||
32 | |||
33 | /** |
||
34 | * @param ContextInterface $ctx |
||
35 | * @param RuleInterface|AstValueInterface $rule |
||
36 | * @return mixed|Value |
||
37 | */ |
||
38 | public function reduce(ContextInterface $ctx, RuleInterface $rule) |
||
42 | } |
||
43 |
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.