Can't edit addresses as a customer
AJenbo opened this issue · comments
Version: bea93b4
Describe the bug
As a customer I can't change my addresses.
Opencart\Catalog\Model\Account\Address::editAddress(): Argument #2 ($address_id) must be of type int, array given, called in /var/www/html/system/engine/loader.php on line 156: in /var/www/html/catalog/model/account/address.php on line 37
This issue was also picked up by PHPStan during the GitHub action:
https://github.com/opencart/opencart/actions/runs/8122675764/job/22202365812
Looks like there are about 41 similar issues currently.
To Reproduce
Steps to reproduce the behavior:
- Create user
- Click on my account
- Add an address
- Edit the adresses
- See nothing happened
Expected behavior
Save and continue
Server / Test environment (please complete the following information):
- Local development
- Debian
- PHP 8.2
- Apache 2.4.57
- Firefox