sluggi
sluggi copied to clipboard
If $value in "processCmdmap_postProcess" is an array, it throws an error
I have a custom repeat element on my pages, when i try to translate them, it give me an error
"Wazum\Sluggi\DataHandler\HandlePageCopy::processCmdmap_postProcess(): Argument #4 ($value) must be of type string|int, array given, "
It still translates the elements, you just need to reload to see them.
I "fixed" it by adding array here
string|int|array $value,
and a simple return if it is an array
if(is_array($value)) {
return;
}
Maybe not the best solution, just needed it to work for now