1 | <?php |
||
16 | class Changes extends FlexiBeeRO |
||
17 | { |
||
18 | /** |
||
19 | * Evidence užitá objektem. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | public $evidence = 'changes'; |
||
24 | 1 | ||
25 | /** |
||
26 | 1 | * Povolí oznamování změn |
|
27 | 1 | * @return type |
|
28 | */ |
||
29 | public function enable() |
||
34 | 1 | ||
35 | /** |
||
36 | 1 | * Zakáže oznamování změn |
|
37 | 1 | * @return type |
|
38 | */ |
||
39 | public function disable() |
||
44 | |||
45 | 1 | /** |
|
46 | * Vrátí stav zapnutí ChangesAPI |
||
47 | 1 | * |
|
48 | 1 | * @return boolan |
|
49 | */ |
||
50 | public function getStatus() |
||
55 | |||
56 | /** |
||
57 | * Test if given record exists in FlexiBee . |
||
58 | * |
||
59 | * @param array $data |
||
60 | * @return null Method is disabled for Changes |
||
61 | */ |
||
62 | public function recordExists($data = null) |
||
66 | |||
67 | /** |
||
68 | * Obtain actual GlobalVersion |
||
69 | * Vrací aktuální globální verzi změn |
||
70 | * |
||
71 | * @link https://www.flexibee.eu/api/dokumentace/ref/changes-api#globalVersion Globální Verze |
||
72 | * @return int |
||
73 | */ |
||
74 | public function getGlobalVersion() |
||
81 | } |
||
82 |
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: