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...
20
{
21
22
/**
23
* Create service
24
*
25
* This method gains ZF3 compatibility
26
*
27
* @param ContainerInterface $container
28
* @param string $requestedName
29
* @param array $options
30
*
31
* @return mixed
32
*/
33
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...
36
}
37
38
/**
39
* Create service
40
*
41
* @param ServiceLocatorInterface $serviceLocator
42
*
43
* @return mixed
44
*/
45
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.