mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2025-12-06 13:38:53 +08:00
Fix: resolve phpstan error with get() in plugin class.
This commit is contained in:
@@ -29,6 +29,9 @@ class SkeletonPlugin implements Plugin
|
||||
|
||||
public static function get(): static
|
||||
{
|
||||
return filament(app(static::class)->getId());
|
||||
/** @var static $plugin */
|
||||
$plugin = filament(app(static::class)->getId());
|
||||
|
||||
return $plugin;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user