We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 23 | class NavItem |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $text; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | protected $url = '#'; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var int |
||
| 37 | */ |
||
| 38 | protected $order; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var string |
||
| 42 | */ |
||
| 43 | protected $target; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var bool |
||
| 47 | */ |
||
| 48 | protected $active = false; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @var Collection |
||
| 52 | */ |
||
| 53 | public $children = []; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * NavItem constructor. |
||
| 57 | * |
||
| 58 | * @param Menu $menu |
||
| 59 | * @param bool $active |
||
| 60 | */ |
||
| 61 | public function __construct(Menu $menu, bool $active = false) |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param NavItem $navItem |
||
|
|
|||
| 74 | */ |
||
| 75 | public function addChild(self $navItem) |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return bool |
||
| 82 | */ |
||
| 83 | public function classState() |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @return string |
||
| 90 | */ |
||
| 91 | public function url() |
||
| 95 | |||
| 96 | /** |
||
| 97 | * @return string |
||
| 98 | */ |
||
| 99 | public function title() |
||
| 103 | |||
| 104 | /** |
||
| 105 | * @return mixed |
||
| 106 | */ |
||
| 107 | public function target() |
||
| 111 | } |
||
| 112 |
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.