1 | <?php |
||
23 | class ChildrenSubscriber implements EventSubscriberInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var ProxyFactory |
||
27 | */ |
||
28 | private $proxyFactory; |
||
29 | |||
30 | /** |
||
31 | * @param ProxyFactory $proxyFactory |
||
32 | */ |
||
33 | public function __construct(ProxyFactory $proxyFactory) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public static function getSubscribedEvents() |
||
47 | |||
48 | /** |
||
49 | * @param HydrateEvent $event |
||
50 | */ |
||
51 | public function handleHydrate(HydrateEvent $event) |
||
62 | } |
||
63 |
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: