Implement ObjectGetDebugInfoInterface::__getDebugInfo() returning ['rows' => n, 'columns' => m, 'data' => [...]] so var_dump($matrix) shows meaningful state instead of raw private properties.
Contract note: this handler runs across the FFI boundary and must not throw — keep it strictly allocation-only (build the array from already-validated state, no validation or arithmetic inside the hook).
Implement
ObjectGetDebugInfoInterface::__getDebugInfo()returning['rows' => n, 'columns' => m, 'data' => [...]]sovar_dump($matrix)shows meaningful state instead of raw private properties.Contract note: this handler runs across the FFI boundary and must not throw — keep it strictly allocation-only (build the array from already-validated state, no validation or arithmetic inside the hook).