We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 17 | class Navigation |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $routes = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var Collection |
||
| 26 | */ |
||
| 27 | public $collection = []; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Navigation constructor. |
||
| 31 | * |
||
| 32 | * @param Collection $repository |
||
| 33 | */ |
||
| 34 | public function __construct(Collection $repository) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param Collection $repository |
||
| 43 | * @return Collection |
||
| 44 | */ |
||
| 45 | protected function generateNav(Collection $repository) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return array |
||
| 64 | */ |
||
| 65 | private function splitRoutes() |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @default $menu->page->slug == currentURI() ? true : false; |
||
| 78 | * @param string $string |
||
| 79 | * @return bool |
||
| 80 | */ |
||
| 81 | public function isActiveTitle(string $string) |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @param $menu |
||
| 88 | * @return NavItem |
||
| 89 | */ |
||
| 90 | protected function makeNavItem(Menu $menu): NavItem |
||
| 94 | } |
||
| 95 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: