Skip to content

getIcon(): Return value must be of type string, null returned #47

@LukasJK

Description

@LukasJK

Suddenly I started getting errors when using SimpleAlert without specifying ->icon(''):
CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert::getIcon(): Return value must be of type string, null returned

No Error:

SimpleAlert::make('remarks')
                            ->icon('')
                            ->visible(fn() => !empty($this->route->remarks))
                            ->description(fn() => $this->route->remarks),

Error:

SimpleAlert::make('remarks')
                            ->visible(fn() => !empty($this->route->remarks))
                            ->description(fn() => $this->route->remarks),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions