| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
| 37 | { |
||
| 38 | $request = $container->get('Request'); |
||
| 39 | $urlHelper = $container->get('viewhelpermanager')->get('url'); |
||
| 40 | $returnUrl = $urlHelper(null, [], ['query' => $request->getQuery()->toArray()], true); |
||
| 41 | |||
| 42 | return new AdminEditLink($urlHelper, $returnUrl); |
||
| 43 | } |
||
| 44 | |||
| 56 | } |
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.