From fed9cd265cd49176c516b74ffc3d245f628de982 Mon Sep 17 00:00:00 2001 From: taylordevs Date: Thu, 22 Jun 2023 21:40:31 +0700 Subject: [PATCH] Fix PHPStan --- src/NhanAZ/libBedrock/ResourcePackManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NhanAZ/libBedrock/ResourcePackManager.php b/src/NhanAZ/libBedrock/ResourcePackManager.php index b348dd1..8393bd3 100644 --- a/src/NhanAZ/libBedrock/ResourcePackManager.php +++ b/src/NhanAZ/libBedrock/ResourcePackManager.php @@ -23,7 +23,7 @@ class ResourcePackManager { private static ?ResourcePack $pack = null; - public static function registerResourcePack(PluginBase $plugin, $encryptKey = "") : void { + public static function registerResourcePack(PluginBase $plugin, string $encryptKey = "") : void { $plugin->getLogger()->debug('Compiling resource pack'); $zip = new \ZipArchive(); $zip->open(Path::join($plugin->getDataFolder(), $plugin->getName() . '.mcpack'), \ZipArchive::CREATE | \ZipArchive::OVERWRITE);