Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ksn135 committed Jun 16, 2024
1 parent d28381b commit a853578
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Config/BreadcrumbItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
{
public function __construct(
public ?string $action = null,
public null|string|\Closure $label = null,
public string|\Closure|null $label = null,
public ?string $route = null,
public null|string|\Closure $crudControllerFqcn = null,
public null|string|\Closure $entityId = null,
public string|\Closure|null $crudControllerFqcn = null,
public string|\Closure|null $entityId = null,
public ?string $credentials = null,
public null|string|\Closure|array $entityInstanceCallback = null,
public string|\Closure|array|null $entityInstanceCallback = null,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Dto/DashboardDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function getBreadcrumbHierarchyCallback(): \Closure
*/
public function getDefaultBreadcrumbHierarchyCallback(): \Closure
{
return function (null|string|BreadcrumbItem $action): null|string {
return function (string|BreadcrumbItem|null $action): ?string {
if ($action instanceof BreadcrumbItem) {
$action = $action->action;
}
Expand Down

0 comments on commit a853578

Please sign in to comment.