1 | <?php |
||
12 | final class RbCommentTableGatewayFactory implements FactoryInterface |
||
13 | { |
||
14 | /** |
||
15 | * @param ContainerInterface $container |
||
16 | * @param string $requestedName |
||
17 | * @param array|null $options |
||
18 | * |
||
19 | * @return object|CommentTable |
||
20 | */ |
||
21 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
30 | } |
||
31 |
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: