NOTICE Object of class stdClass could not be converted to int (includes_ws/librerias/API_WS_V3/WSEntidades.php[2583])

Fatal error: Cannot use object of type stdClass as array in /var/www/html/includes_ws/librerias/API_WS_V3/WSEntidades.php on line 2587
ERROR [1] Cannot use object of type stdClass as array (includes_ws/librerias/API_WS_V3/WSEntidades.php[2587])