| 1 | <?php |
||
| 5 | class PageHeaderDirective |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Page header blade directive compiler. |
||
| 9 | * @pageHeader($title, $description, $icon, $template) |
||
| 10 | * |
||
| 11 | * @param string $title |
||
| 12 | * @param string $description |
||
| 13 | * @param string $icon |
||
| 14 | * @param string $template |
||
| 15 | * @return string |
||
| 16 | * @throws \Exception |
||
| 17 | * @throws \Throwable |
||
| 18 | */ |
||
| 19 | public function handle($title, $description, $icon, $template = 'system.page-header-title') |
||
| 23 | } |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: