Project

General

Profile

Actions

Bug #2000

closed

PHP 8.3: Error al consultar información del abogado en Secretaría TS (getLawyerInfo)

Added by Francisco Medina about 1 month ago. Updated 11 days ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
-
Start date:
10/23/2026
Due date:
% Done:

0%

Estimated time:

Description

Desde la actualización a PHP 8.3.36 (22-oct-2026), la consulta de la información del abogado falla cuando RUA devuelve un solo elemento (o ninguno) en notificaciones, direcciones, historial de empleo o teléfonos.

Error (VAPPPRD34/40, 7 ocurrencias el 23-oct-2026):

PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, stdClass given
in PHPSupremeCourtServiceProd\backend\service\getLawyerInfo.php:37

Causa: el servicio SOAP devuelve un objeto cuando hay un solo elemento y nada cuando no hay; count() sobre un objeto o null, y property_exists() sobre null o un arreglo, son errores fatales en PHP 8.

Corrección: normalizar cada colección a una lista antes de recorrerla en service/backend/service/getLawyerInfo.php.

Actions

Also available in: Atom PDF