Missing required second argument in array_diff

The $whiteListAttributes variable is missing on the comparison function.