| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
| 37 | { |
||
| 38 | /* @var \Applications\Repository\Application $applications */ |
||
| 39 | $repositories = $container->get('repositories'); |
||
| 40 | $applications = $repositories->get('Applications'); |
||
| 41 | $states = $applications->getStates(); |
||
| 42 | array_unshift($states, ''); |
||
| 43 | $valueOptions = array_combine($states, $states); |
||
| 44 | $select = new Select(); |
||
| 45 | |||
| 46 | $select->setValueOptions($valueOptions); |
||
| 47 | |||
| 48 | return $select; |
||
| 49 | } |
||
| 50 | |||
| 61 |
This check looks for
@paramannotations 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.