AnsweredAssumed Answered

Invalid usage of a function array_map()

Question asked by Steven Osborne on Nov 3, 2017
Latest reply on Nov 3, 2017 by Steven Osborne

When trying to upload a package containing a logic hook to a sugar on demand environment, I am getting the error

"Invalid usage of a function array_map()"

The usage of array_map is here:

$serviceTypeList = array_map("trim", $serviceTypeList);

The code works fine and trims every element in the array when using it locally. Why is sugar on demand complaining about this usage?

 

Thanks,

Steven

Outcomes