bug: InstallController::execute() signature incompatible with Joomla BaseController #183

Open
opened 2026-06-05 04:03:37 +00:00 by jmiller · 1 comment
Owner

Summary

The MokoWaaS API install endpoint (/api/index.php/v1/mokowaas/install) returns a 500 error due to a method signature mismatch.

Error

Compile Error: Declaration of Moko\Component\MokoWaaS\Api\Controller\InstallController::execute(): void
must be compatible with Joomla\CMS\MVC\Controller\BaseController::execute($task)

Cause

InstallController::execute() is declared with (): void return type but Joomla BaseController::execute($task) requires a $task parameter.

Fix

Update the method signature to:

public function execute($task): void

Impact

Blocks remote extension deployment via the MokoWaaS API. Unable to install packages from Gitea releases to the dev Joomla instance programmatically.

## Summary The MokoWaaS API install endpoint (`/api/index.php/v1/mokowaas/install`) returns a 500 error due to a method signature mismatch. ## Error ``` Compile Error: Declaration of Moko\Component\MokoWaaS\Api\Controller\InstallController::execute(): void must be compatible with Joomla\CMS\MVC\Controller\BaseController::execute($task) ``` ## Cause InstallController::execute() is declared with (): void return type but Joomla BaseController::execute($task) requires a $task parameter. ## Fix Update the method signature to: ```php public function execute($task): void ``` ## Impact Blocks remote extension deployment via the MokoWaaS API. Unable to install packages from Gitea releases to the dev Joomla instance programmatically.
Author
Owner

Branch created: feature/183-bug-installcontroller-execute-signature-

git fetch origin
git checkout feature/183-bug-installcontroller-execute-signature-
Branch created: [`feature/183-bug-installcontroller-execute-signature-`](https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS/src/branch/feature/183-bug-installcontroller-execute-signature-) ```bash git fetch origin git checkout feature/183-bug-installcontroller-execute-signature- ```
Sign in to join this conversation.
No labels
Type
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoWaaS#183