The interface Zend\ServiceManager\FactoryInterface has been deprecated with message: Use Zend\ServiceManager\Factory\FactoryInterface instead.
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be
removed from the class and what other constant to use instead.
Loading history...
19
{
20
21
/**
22
* Create service
23
*
24
* This method gains ZF3 compatibility
25
*
26
* @param ContainerInterface $container
27
* @param string $requestedName
28
* @param array $options
29
*
30
* @return mixed
31
*/
32
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
$container of type object<Interop\Container\ContainerInterface> is not a sub-type of object<Zend\ServiceManag...erviceLocatorInterface>. It seems like you assume a child interface of the interface Interop\Container\ContainerInterface to be always present.
This check looks for parameters that are defined as one type in their type
hint or doc comment but seem to be used as a narrower type, i.e an
implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming
your parameter is of the expected type.
Loading history...
35
}
36
37
/**
38
* Create service
39
*
40
* @param ServiceLocatorInterface $serviceLocator
41
*
42
* @return mixed
43
*/
44
public function createService(ServiceLocatorInterface $serviceLocator)
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.