From 96f0aac4f855db186d4fc5414258555b4b593ff7 Mon Sep 17 00:00:00 2001 From: Boy132 Date: Mon, 10 Nov 2025 09:38:19 +0100 Subject: [PATCH] make phpstan happy --- app/Facades/Plugins.php | 2 +- app/Services/Helpers/PluginService.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Facades/Plugins.php b/app/Facades/Plugins.php index 4a53f9e68..a1567a5e9 100644 --- a/app/Facades/Plugins.php +++ b/app/Facades/Plugins.php @@ -11,7 +11,7 @@ use Illuminate\Support\Facades\Facade; /** * @method static void loadPlugins() * @method static void loadPanelPlugins(Panel $panel) - * @method static void manageComposerPackages(?array $oldPackages = null) + * @method static void manageComposerPackages(null|array $newPackages = [], null|array $oldPackages = null) * @method static void runPluginMigrations(Plugin $plugin) * @method static void rollbackPluginMigrations(Plugin $plugin) * @method static void installPlugin(Plugin $plugin, bool $enable = true) diff --git a/app/Services/Helpers/PluginService.php b/app/Services/Helpers/PluginService.php index b4606987e..c11fb5723 100644 --- a/app/Services/Helpers/PluginService.php +++ b/app/Services/Helpers/PluginService.php @@ -150,7 +150,10 @@ class PluginService } } - /** @param null|string[] $oldPackages */ + /** + * @param null|array $newPackages + * @param null|array $oldPackages + */ public function manageComposerPackages(?array $newPackages = [], ?array $oldPackages = null): void { $newPackages ??= [];