1 | <?php |
||
22 | class EntityRepository extends AbstractRepository implements |
||
23 | RepositoryInterface |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * Finds entities |
||
28 | * |
||
29 | * @return QueryObject |
||
30 | * |
||
31 | * @see Slick\Database\Sql\Select |
||
32 | */ |
||
33 | public function find() |
||
37 | |||
38 | /** |
||
39 | * Gets an entity by its id |
||
40 | * |
||
41 | * @param mixed $entityId |
||
42 | * |
||
43 | * @return EntityInterface|null |
||
44 | */ |
||
45 | 4 | public function get($entityId) |
|
53 | |||
54 | /** |
||
55 | * Loads entity from database |
||
56 | * |
||
57 | * @param $entityId |
||
58 | * |
||
59 | * @return null|EntityInterface |
||
60 | */ |
||
61 | 2 | protected function load($entityId) |
|
85 | } |
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: