Skip to content

Commit

Permalink
add parameter's type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-liang-shan authored and milewski committed Oct 9, 2020
1 parent db5eb75 commit cbcd194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HasResourceNavigationTabTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public function detailFieldsWithinPanels(NovaRequest $request, NovaResource $res
);
}

public function availablePanelsForDetail($request, NovaResource $resource)
public function availablePanelsForDetail(NovaRequest $request, NovaResource $resource)
{

$label = Panel::defaultNameForDetail($resource ?? $request->newResource());
$label = Panel::defaultNameForDetail($resource);
$panels = $this->panelsWithDefaultLabel($label, $request);

$navigationField = $this->getActiveNavigationField($request);
Expand Down

0 comments on commit cbcd194

Please sign in to comment.