| 1 | <?php |
||
| 16 | class Entity |
||
| 17 | { |
||
| 18 | /** @var string Entity identifier */ |
||
| 19 | protected static $identifier; |
||
| 20 | |||
| 21 | /** @var string Entity navigation identifiers */ |
||
| 22 | protected static $navigationIDs; |
||
| 23 | |||
| 24 | /** @var array Collection of entity field filter */ |
||
| 25 | protected $fieldFilter; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Set additional entity field condition. |
||
| 29 | * |
||
| 30 | * @param string $fieldName Field identifier |
||
| 31 | * @param string $fieldValue Field value |
||
| 32 | * @return self Chaining |
||
| 33 | */ |
||
| 34 | public function where($fieldName, $fieldValue) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Perform SamsonCMS query and get entities collection. |
||
| 43 | * |
||
| 44 | * @return mixed[] Collection of found entities |
||
| 45 | */ |
||
| 46 | public function find() |
||
| 62 | } |
||
| 63 |
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: