Versions
Version 2.0.4 Documentation Notes
Render MNB exceptions without raw vendor paths and use nullable or active-sheet fallback helpers when worksheet input is optional.
v2.0.4 in the MNB PHPExcel v2 release line.
Developer-friendly error rendering and active-sheet fallback helpers improve diagnostics and optional worksheet handling.
- Status
- Maintenance
- Package
mnb/mnb-phpexcel-core- Introduced
- v2.0.4
Keep developer diagnostics useful without exposing raw vendor paths to public responses.
v2.0.4 adds developer-friendly rendering and supports optional worksheet selection with an active-sheet fallback.
use Mnb\PHPExcel\Support\MnbExcelErrorHandler;
MnbExcelErrorHandler::registerDeveloperMode();
$sheet = $workbook->sheetOrActive($optionalSheetName);Register the MNB error renderer where detailed diagnostics are appropriate.
Keep application-facing responses clean rather than exposing uncaught fatal output.
sheetOrActive() gives optional names a deliberate active-sheet fallback.
Treat diagnostics and application error handling as separate boundaries.
The errors-and-results concept guide shows the broader production pattern around exceptions, row-level failures, and terminal results.