1 | <?php |
||
20 | class ManageCronTask |
||
21 | { |
||
22 | |||
23 | const EXEC_CLI = 1; |
||
24 | const EXEC_SYMFONYCLI = 2; |
||
25 | const EXEC_REST = 3; |
||
26 | const EXEC_SYMFONYSERVICE = 4; |
||
27 | |||
28 | protected $em; |
||
29 | |||
30 | public function __construct(EntityManager $entityManager) |
||
34 | |||
35 | public function createCronTask($name, array $commands, $execType, \DateTime $firstRun, $interval = 0, $repeatable = 0) |
||
49 | |||
50 | } |
||
51 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: