Skip to content

Commit c7a57d9

Browse files
authored
Merge pull request #37 from filamentphp/fix/phpstan-issue-in-plugin-class
Fix: resolve phpstan error with get() in plugin class.
2 parents a1fdfab + 8cae413 commit c7a57d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SkeletonPlugin.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public static function make(): static
2929

3030
public static function get(): static
3131
{
32-
return filament(app(static::class)->getId());
32+
/** @var static $plugin */
33+
$plugin = filament(app(static::class)->getId());
34+
35+
return $plugin;
3336
}
3437
}

0 commit comments

Comments
 (0)