Conditions | 3 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function getAllChanges($object) |
||
39 | { |
||
40 | $changesArray = []; |
||
41 | |||
42 | $evidence = $object->getEvidence(); |
||
43 | if (array_key_exists($evidence, self::$evidenceToDb)) { |
||
44 | $dbTable = self::$evidenceToDb[$evidence]; |
||
45 | $changes = $this->getColumnsFromFlexibee('*', |
||
|
|||
46 | ['tabulka' => $dbTable, 'idZaznamu' => $object->getMyKey()]); |
||
47 | |||
48 | foreach ($changes as $change) { |
||
49 | $changesArray[$change['datCas']][$change['sloupec']] = $change; |
||
50 | } |
||
51 | } |
||
52 | return $changesArray; |
||
53 | } |
||
54 | |||
71 |
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: