1 | <?php |
||
23 | class EntityRepository extends AbstractRepository implements |
||
24 | RepositoryInterface |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Gets an entity by its id |
||
29 | * |
||
30 | * @param mixed $entityId |
||
31 | * |
||
32 | * @return EntityInterface|null |
||
33 | */ |
||
34 | public function get($entityId) |
||
42 | |||
43 | /** |
||
44 | * Loads entity from database |
||
45 | * |
||
46 | * @param $entityId |
||
47 | * |
||
48 | * @return null|EntityInterface |
||
49 | */ |
||
50 | protected function load($entityId) |
||
74 | } |
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: