Elektrine lite

← Feed

@stevegrunwell@phpc.social

2026-09-09 00:48 UTC

Another brand new #ComposerPackage for y'all: BackTrace, which is best described as "value objects for `debug_backtrace()`" This one might be pretty niche, but I needed it for a feature I'm building on TypeSnitch, so now we all benefit 😁 https://codeberg.org/stevegrunwell/backtrace

Replies (2)

  • @bobmagicii@phpc.social 2026-09-09 01:34

    @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.

    Open ##4652431

  • @stevegrunwell@phpc.social 2026-09-09 15:16

    I just tagged version 1.0.0 of stevegrunwell/backtrace, which adds the ability to create a Stack object directly from a Throwable instance! https://codeberg.org/stevegrunwell/backtrace

    Open ##5116441