1 | <?php |
||
17 | class UcetniObdobi extends FlexiBeeRW |
||
18 | { |
||
19 | /** |
||
20 | * Evidence FlexiBee |
||
21 | * @var string |
||
22 | */ |
||
23 | public $evidence = 'ucetni-obdobi'; |
||
24 | |||
25 | /** |
||
26 | * Create requested Accounting period |
||
27 | * |
||
28 | * @param int $startYear first year to create |
||
29 | * @param int $endYear last yar to create - default is current year |
||
30 | * |
||
31 | * @return array Results |
||
32 | */ |
||
33 | 1 | public function createYearsFrom($startYear, $endYear = null) |
|
55 | } |
||
56 |
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: