1 | <?php |
||
13 | class CronRule extends AbstractRule |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @param DateTimeInterface $from |
||
18 | * @param DateTimeInterface $to |
||
19 | * @param boolean $inc |
||
20 | * @throws |
||
21 | * @return DateTimeInterface[] |
||
22 | */ |
||
23 | 1 | public function getRecurrences(DateTimeInterface $from, DateTimeInterface $to, $inc = true) |
|
38 | |||
39 | /** |
||
40 | * @param CronExpression $rRule |
||
41 | * @param DateTimeInterface $from |
||
42 | * @param DateTimeInterface $to |
||
43 | * @param $inc |
||
44 | * @return DateTimeInterface[] |
||
45 | */ |
||
46 | 1 | private function getDates(CronExpression $rRule, DateTimeInterface $from, DateTimeInterface $to, $inc) |
|
60 | } |
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.