bug: BackupModel/ProfileModel loadFormData() returns array when object declared — TypeError #80
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: MEDIUM
loadFormData()declares return typeobjectbutgetUserState()can return an array. On PHP 8.x this throws aTypeError, crashing the edit views when Joomla restores form state after validation failure.Fix
Files
src/Model/BackupModel.php:32-39src/Model/ProfileModel.php(same pattern)