Elektrine lite

← Feed

@bobmagicii@phpc.social

2026-09-09 01:34 UTC

@stevegrunwell@phpc.social can the factory be handed an exception too? it would be better dx developer experience to just give the factory my exception and it getTrace() than having to err->getTrace() ourselves.

Replies (1)

  • @stevegrunwell@phpc.social 2026-09-09 01:57

    @bobmagicii@phpc.social I have that feature almost written, I'm just deciding how to handle the truncation of arguments and "{main}". Would exact parity matter to you? ``` +++ BackTrace --- Throwable::getTraceAsString() + #0 func('Some longer string') - #0 func('Some longer s...') - #1 {main} ```

    Open ##5116442