1 | <?php |
||
24 | class ImagineFactory implements FactoryInterface |
||
25 | { |
||
26 | /** |
||
27 | * |
||
28 | * |
||
29 | * @param ContainerInterface $container |
||
30 | * @param string $requestedName |
||
31 | * @param array $options |
||
|
|||
32 | * |
||
33 | * @return \Imagine\Image\ImagineInterface |
||
34 | * @throws \UnexpectedValueException |
||
35 | */ |
||
36 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
57 | |||
58 | /** |
||
59 | * Create service |
||
60 | * |
||
61 | * @param ServiceLocatorInterface $serviceLocator |
||
62 | * |
||
63 | * @return \Imagine\Image\ImagineInterface |
||
64 | */ |
||
65 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
69 | } |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.