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