| 1 | <?php |
||
| 11 | class MenuAdaptor implements MenuAdaptorInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | private $menuNames; |
||
| 17 | |||
| 18 | public function __construct(array $menuNames) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param MenuItem $parent |
||
|
|
|||
| 25 | * @param Request $request |
||
| 26 | */ |
||
| 27 | public function adaptChildren(MenuBuilder $menu, array &$children, MenuItem $parent = null, Request $request = null) |
||
| 43 | } |
||
| 44 |
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.