1 | <?php |
||
23 | class GalleryManager extends BaseDocumentManager implements GalleryManagerInterface |
||
24 | { |
||
25 | /** |
||
26 | * BC Compatibility. |
||
27 | * |
||
28 | * NEXT_MAJOR: remove this method. |
||
29 | * |
||
30 | * @deprecated Please use save() from now |
||
31 | */ |
||
32 | public function update(GalleryInterface $gallery): void |
||
33 | { |
||
34 | parent::save($gallery); |
||
35 | } |
||
36 | |||
37 | public function getPager(array $criteria, $page, $limit = 10, array $sort = []): void |
||
41 | } |
||
42 |
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: