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:
@@ -60,6 +60,8 @@ final readonly class NavigationSection
|
||||
|
||||
public function toArray(): array
|
||||
{
|
||||
$icon = $this->getIcon();
|
||||
|
||||
return [
|
||||
'section' => $this->name,
|
||||
'name' => $this->name,
|
||||
@@ -68,6 +70,7 @@ final readonly class NavigationSection
|
||||
$this->items
|
||||
),
|
||||
'icon' => $this->icon instanceof Icon ? $this->icon->toString() : $this->icon,
|
||||
'icon_html' => $icon?->toHtml('admin-nav__section-icon') ?? '',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user