fix(Console): add void as valid return type for command methods
The MethodSignatureAnalyzer was rejecting command methods with void return type, causing the schedule:run command to fail validation.
This commit is contained in:
@@ -44,10 +44,13 @@ final readonly class NavigationItem
|
||||
|
||||
public function toArray(): array
|
||||
{
|
||||
$icon = $this->getIcon();
|
||||
|
||||
return [
|
||||
'name' => $this->name,
|
||||
'url' => $this->url,
|
||||
'icon' => $this->icon instanceof Icon ? $this->icon->toString() : $this->icon,
|
||||
'icon_html' => $icon?->toHtml('admin-nav__icon') ?? '',
|
||||
'is_active' => $this->isActive,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user