We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8680cd commit 1482561Copy full SHA for 1482561
src/Filament/Form/Forms/MenuItemForm.php
@@ -247,8 +247,12 @@ protected static function getTypes(): array
247
return static::$types;
248
}
249
250
- protected static function getTypeByAlias(string $alias): ?AbstractMenuItemType
+ protected static function getTypeByAlias(?string $alias): ?AbstractMenuItemType
251
{
252
+ if ($alias === null) {
253
+ return null;
254
+ }
255
+
256
foreach (static::getTypes() as $type) {
257
if ($type->getAlias() === $alias) {
258
return $type;
0 commit comments