--- magentoerpconnect/unit/backend_adapter.py 2013-06-26 06:36:58 +0000 +++ magentoerpconnect/unit/backend_adapter.py 2013-11-18 08:05:44 +0000 @@ -126,6 +126,12 @@ with magentolib.API(self.magento.location, self.magento.username, self.magento.password) as api: + + # If magento is used with PHP version >= 5.4, then we have to remove all + # trailing None values + if isinstance(arguments, list) and len(arguments) > 0 and arguments[-1] is None: + arguments = [a for a in arguments if a is not None] + result = api.call(method, arguments) # Uncomment to record requests/responses in ``recorder`` # record(method, arguments, result)