When I call generateToken method more than one time in code execution have this error.
I think function_exists does not work property fine. If you use function declaration in other function you need to add namespace.
if i change in src/OpenTok/Util/Validators.php (464 line)
if (!function_exists('array_is_list')) {
to
if (!function_exists('\OpenTok\Util\array_is_list')) {
its works fine.
Your Environment
Environment name and version (e.g. PHP 7.2 on nginx 1.9.1):
When I call generateToken method more than one time in code execution have this error. I think function_exists does not work property fine. If you use function declaration in other function you need to add namespace.
if i change in src/OpenTok/Util/Validators.php (464 line)
if (!function_exists('array_is_list')) {
toif (!function_exists('\OpenTok\Util\array_is_list')) {
its works fine.Your Environment