Launch import through cli php bin/magento akeneo_connector:import --code=product
Expected result
1.The process should finish
Actual result
1.The process fail with error Argument #1 ($string) must be of type string, int given
The variable $suffix is an int, and the function strlen expects a string
In order to fix it we have modify the related line to this
$product->setUrlKey(substr($product->getUrlKey(), 0, -(strlen((string)($suffix - 1)) + 1)) . '-' . $suffix);
Environment and configuration
Steps to reproduce
Expected result
1.The process should finish
Actual result
1.The process fail with error Argument #1 ($string) must be of type string, int given![image](https://user-images.githubusercontent.com/7163132/188418339-83601c10-3395-4579-a49a-ef42945b1207.png)
The variable $suffix is an int, and the function strlen expects a string In order to fix it we have modify the related line to this
$product->setUrlKey(substr($product->getUrlKey(), 0, -(strlen((string)($suffix - 1)) + 1)) . '-' . $suffix);
Regards,