From 5f68d6ec8cf969c6275a3cfccf2fd33a3abd2874 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 20:29:03 +0000 Subject: [PATCH] Fix InstallerScriptInterface method return types to bool Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- src/plugins/system/mokowaasbrand/script.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/system/mokowaasbrand/script.php b/src/plugins/system/mokowaasbrand/script.php index 1a1d65ea..757ae516 100644 --- a/src/plugins/system/mokowaasbrand/script.php +++ b/src/plugins/system/mokowaasbrand/script.php @@ -76,7 +76,7 @@ class plgSystemMokoWaaSBrandInstallerScript implements InstallerScriptInterface * * @since 01.06.00 */ - public function preflight($type, $adapter) + public function preflight($type, $adapter): bool { // Check minimum Joomla version if (version_compare(JVERSION, $this->minimumJoomla, '<')) @@ -111,7 +111,7 @@ class plgSystemMokoWaaSBrandInstallerScript implements InstallerScriptInterface * * @since 01.06.00 */ - public function postflight($type, $adapter) + public function postflight($type, $adapter): bool { // Only install overrides on install or update if ($type === 'install' || $type === 'update') @@ -131,7 +131,7 @@ class plgSystemMokoWaaSBrandInstallerScript implements InstallerScriptInterface * * @since 01.06.00 */ - public function install(InstallerAdapter $adapter) + public function install(InstallerAdapter $adapter): bool { return true; } @@ -145,7 +145,7 @@ class plgSystemMokoWaaSBrandInstallerScript implements InstallerScriptInterface * * @since 01.06.00 */ - public function update(InstallerAdapter $adapter) + public function update(InstallerAdapter $adapter): bool { return true; } @@ -159,7 +159,7 @@ class plgSystemMokoWaaSBrandInstallerScript implements InstallerScriptInterface * * @since 01.06.00 */ - public function uninstall(InstallerAdapter $adapter) + public function uninstall(InstallerAdapter $adapter): bool { // Remove language overrides on uninstall $this->uninstallLanguageOverrides();